Skip to content

Commit 75b3259

Browse files
committed
Fix some lints
1 parent 0664b64 commit 75b3259

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

opentelemetry-sdk/src/logs/log_emitter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ mod tests {
312312
use opentelemetry::{Key, KeyValue, Value};
313313
use std::fmt::{Debug, Formatter};
314314
use std::sync::atomic::AtomicU64;
315-
use std::sync::{Arc, Mutex};
315+
use std::sync::Mutex;
316316
use std::thread;
317317

318318
struct ShutdownTestLogProcessor {

opentelemetry-sdk/src/metrics/periodic_reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ impl<RT: Runtime> PeriodicReaderWorker<RT> {
291291
true
292292
}
293293

294-
async fn run(mut self, mut messages: impl Unpin + FusedStream<Item = Message>) {
294+
async fn run(mut self, mut messages: impl FusedStream<Item = Message> + Unpin) {
295295
while let Some(message) = messages.next().await {
296296
if !self.process_message(message).await {
297297
break;

opentelemetry-sdk/src/trace/span_processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ impl<R: RuntimeChannel> BatchSpanProcessorInternal<R> {
422422
})
423423
}
424424

425-
async fn run(mut self, mut messages: impl Unpin + FusedStream<Item = BatchMessage>) {
425+
async fn run(mut self, mut messages: impl FusedStream<Item = BatchMessage> + Unpin) {
426426
loop {
427427
select! {
428428
// FuturesUnordered implements Fuse intelligently such that it

opentelemetry-zipkin/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
//! [`ZipkinPipelineBuilder`] docs for details of each option.
8585
//!
8686
//!
87-
//! ```no_run,ignore
87+
//! ```no_run
8888
//! use opentelemetry::{global, KeyValue, trace::Tracer};
8989
//! use opentelemetry_sdk::{trace::{self, RandomIdGenerator, Sampler}, Resource};
9090
//! use opentelemetry_sdk::export::trace::ExportResult;

0 commit comments

Comments
 (0)