Skip to content

Commit 32126b1

Browse files
committed
Fix lint
1 parent 4bdbc33 commit 32126b1

File tree

1 file changed

+10
-2
lines changed
  • opentelemetry-otlp/examples/basic-otlp/src

1 file changed

+10
-2
lines changed

opentelemetry-otlp/examples/basic-otlp/src/main.rs

+10-2
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,18 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync + 'static>> {
9191
// execution.
9292

9393
let result = init_tracer();
94-
assert!(result.is_ok(), "Init tracer failed with error: {:?}", result.err());
94+
assert!(
95+
result.is_ok(),
96+
"Init tracer failed with error: {:?}",
97+
result.err()
98+
);
9599

96100
let result = init_metrics();
97-
assert!(result.is_ok(), "Init metrics failed with error: {:?}", result.err());
101+
assert!(
102+
result.is_ok(),
103+
"Init metrics failed with error: {:?}",
104+
result.err()
105+
);
98106

99107
// Initialize logs, which sets the global loggerprovider.
100108
let logger_provider = init_logs().unwrap();

0 commit comments

Comments
 (0)