Skip to content

Commit

Permalink
chore(clippy): fix clippy lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lquerel committed Feb 28, 2024
1 parent a5c320f commit 15358b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/registry/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
) {
Expand Down
2 changes: 1 addition & 1 deletion src/registry/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
) {
Expand Down
8 changes: 4 additions & 4 deletions src/search/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
) {
Expand Down Expand Up @@ -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,
) {
Expand Down Expand Up @@ -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,
) {
Expand All @@ -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) {

Check failure

Code scanning / clippy

this bound is already specified as the supertrait of Clone Error

this bound is already specified as the supertrait of Clone

Check failure

Code scanning / clippy

this bound is already specified as the supertrait of Clone Error

this bound is already specified as the supertrait of Clone
let semconv_registry = schema.semantic_convention_catalog();

let mut schema_builder = Schema::builder();
Expand Down

0 comments on commit 15358b0

Please sign in to comment.