From 15358b0cb6beef306713255248d6f94bbe21b7c8 Mon Sep 17 00:00:00 2001 From: Laurent Querel Date: Wed, 28 Feb 2024 09:16:14 -0800 Subject: [PATCH] chore(clippy): fix clippy lint issues --- src/registry/check.rs | 2 +- src/registry/stats.rs | 2 +- src/search/mod.rs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/registry/check.rs b/src/registry/check.rs index 4dcc000d..6b5d244f 100644 --- a/src/registry/check.rs +++ b/src/registry/check.rs @@ -22,7 +22,7 @@ pub struct CheckRegistry { /// Check a semantic convention registry. pub(crate) fn check_registry_command( - log: impl Logger + Sync + Clone + Sized, + log: impl Logger + Sync + Clone, cache: &Cache, registry_args: &CheckRegistry, ) { diff --git a/src/registry/stats.rs b/src/registry/stats.rs index 11b3b999..dbb8487a 100644 --- a/src/registry/stats.rs +++ b/src/registry/stats.rs @@ -22,7 +22,7 @@ pub struct StatsRegistry { /// Compute stats on a semantic convention registry. pub(crate) fn stats_registry_command( - log: impl Logger + Sync + Clone + Sized, + log: impl Logger + Sync + Clone, cache: &Cache, registry_args: &StatsRegistry, ) { diff --git a/src/search/mod.rs b/src/search/mod.rs index 117221aa..d70e0a53 100644 --- a/src/search/mod.rs +++ b/src/search/mod.rs @@ -209,7 +209,7 @@ pub fn command_search(log: impl Logger + Sync + Clone, command: &SearchCommand) /// Search semantic convention registry command [todo, WIP]. fn search_registry_command2( - log: impl Logger + Sync + Clone + Sized, + log: impl Logger + Sync + Clone, cache: &Cache, registry_args: &SearchRegistry2, ) { @@ -261,7 +261,7 @@ fn search_registry_command2( /// Search semantic convention registry command. fn search_registry_command( - log: impl Logger + Sync + Clone + Sized, + log: impl Logger + Sync + Clone, cache: &Cache, registry_args: &SearchRegistry, ) { @@ -302,7 +302,7 @@ fn search_registry_command( /// Search schema command. fn search_schema_command( - log: impl Logger + Sync + Clone + Sized, + log: impl Logger + Sync + Clone, cache: &Cache, schema_args: &SearchSchema, ) { @@ -316,7 +316,7 @@ fn search_schema_command( search_schema_tui(log, schema); } -fn search_schema_tui(log: impl Logger + Sync + Clone + Sized + Sized, schema: TelemetrySchema) { +fn search_schema_tui(log: impl Logger + Sync + Clone + Sized, schema: TelemetrySchema) { let semconv_registry = schema.semantic_convention_catalog(); let mut schema_builder = Schema::builder();