Skip to content

Commit 4c9072f

Browse files
Copilotcijothomas
andcommitted
Fix formatting and clippy warnings after running cargo fmt and lint tools
Co-authored-by: cijothomas <[email protected]>
1 parent 672ba2e commit 4c9072f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

opentelemetry-sdk/src/logs/logger.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ mod tests {
7676
let scope = InstrumentationScope::builder("test").build();
7777
let provider = SdkLoggerProvider::builder().build();
7878
let logger = SdkLogger::new(scope, provider);
79-
79+
8080
// Test that clone works - this is the main goal
8181
#[allow(clippy::redundant_clone)]
82-
let _cloned_logger = logger.clone();
83-
84-
// If we reach here, clone works successfully
85-
assert!(true);
82+
let cloned_logger = logger.clone();
83+
84+
// Verify that both loggers are valid by checking they have the same scope name
85+
assert_eq!(logger.scope.name(), cloned_logger.scope.name());
8686
}
8787
}

0 commit comments

Comments
 (0)