Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Oct 3, 2020
1 parent 9f841bb commit 7e9ec49
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tracing-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ pub(crate) mod spin;

#[cfg(feature = "std")]
mod sync {
pub(crate) use std::sync::{Mutex, MutexGuard};
pub use std::sync::Once;
pub(crate) use std::sync::{Mutex, MutexGuard};
}

#[doc(hidden)]
Expand Down
2 changes: 1 addition & 1 deletion tracing-futures/src/executor/futures_preview.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use core::future::Future;
use crate::{Instrument, Instrumented, WithDispatch};
use core::future::Future;
use futures_core_preview::{
future::FutureObj,
task::{LocalSpawn, Spawn, SpawnError},
Expand Down
2 changes: 1 addition & 1 deletion tracing/src/instrument.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::{dispatcher, span::Span, Dispatch};
use core::pin::Pin;
use core::task::{Context, Poll};
use core::{future::Future, marker::Sized};
use crate::{dispatcher, span::Span, Dispatch};
use pin_project_lite::pin_project;

/// Attaches spans to a `std::future::Future`.
Expand Down
4 changes: 2 additions & 2 deletions tracing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -913,9 +913,9 @@ pub mod subscriber;
#[doc(hidden)]
pub mod __macro_support {
pub use crate::callsite::{Callsite, Registration};
use core::sync::atomic::{AtomicUsize, Ordering};
use core::fmt;
use crate::{subscriber::Interest, Metadata};
use core::fmt;
use core::sync::atomic::{AtomicUsize, Ordering};
use tracing_core::Once;

/// Callsite implementation used by macro-generated code.
Expand Down
8 changes: 4 additions & 4 deletions tracing/src/span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,15 +315,15 @@
//! [parent]: #span-relationships
pub use tracing_core::span::{Attributes, Id, Record};

use crate::{
dispatcher::{self, Dispatch},
field, Metadata,
};
use core::{
cmp, fmt,
hash::{Hash, Hasher},
marker::PhantomData,
};
use crate::{
dispatcher::{self, Dispatch},
field, Metadata,
};

/// Trait implemented by types which have a span `Id`.
pub trait AsId: crate::sealed::Sealed {
Expand Down

0 comments on commit 7e9ec49

Please sign in to comment.