Skip to content

Commit 290c3d0

Browse files
committed
Fix warnings
1 parent 30c2d7c commit 290c3d0

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

opentelemetry-jaeger/src/exporter/thrift/agent.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#![allow(unused_imports)]
55
#![allow(unused_extern_crates)]
6-
#![cfg_attr(clippy, allow(clippy::too_many_arguments, clippy::type_complexity))]
6+
#![allow(clippy::too_many_arguments, clippy::type_complexity)]
77
#![cfg_attr(rustfmt, rustfmt_skip)]
88

99
extern crate thrift;

opentelemetry-jaeger/src/exporter/thrift/jaeger.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#![allow(unused_imports)]
55
#![allow(unused_extern_crates)]
6-
#![cfg_attr(clippy, allow(clippy::too_many_arguments, clippy::type_complexity))]
6+
#![allow(clippy::too_many_arguments, clippy::type_complexity)]
77
#![cfg_attr(rustfmt, rustfmt_skip)]
88

99
extern crate thrift;

opentelemetry-jaeger/src/exporter/thrift/zipkincore.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#![allow(unused_imports)]
55
#![allow(unused_extern_crates)]
6-
#![cfg_attr(clippy, allow(clippy::too_many_arguments, clippy::type_complexity))]
6+
#![allow(clippy::too_many_arguments, clippy::type_complexity)]
77
#![cfg_attr(rustfmt, rustfmt_skip)]
88

99
extern crate thrift;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static COMMON_ATTRIBUTES: Lazy<[KeyValue; 4]> = Lazy::new(|| {
7575
#[tokio::main]
7676
async fn main() -> Result<(), Box<dyn Error + Send + Sync + 'static>> {
7777
let _ = init_tracer()?;
78-
let _ = init_metrics()?;
78+
let () = init_metrics()?;
7979
// Opentelemetry will not provide a global API to manage the logger provider. Application users must manage the lifecycle of the logger provider on their own. Dropping logger providers will disable log emitting.
8080
let logger_provider = init_logs().unwrap();
8181

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync + 'static>> {
9090
// matches the containing block, reporting traces and metrics during the whole
9191
// execution.
9292
let _ = init_tracer()?;
93-
let _ = init_metrics()?;
93+
let () = init_metrics()?;
9494

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

0 commit comments

Comments
 (0)