diff --git a/crossbeam-queue/src/err.rs b/crossbeam-queue/src/err.rs index 42880e89e..58ecee8b0 100644 --- a/crossbeam-queue/src/err.rs +++ b/crossbeam-queue/src/err.rs @@ -16,8 +16,8 @@ impl fmt::Display for PopError { } } -#[cfg(features = "std")] -impl std::error::Error for PopError { +#[cfg(feature = "std")] +impl ::std::error::Error for PopError { fn description(&self) -> &str { "popping from an empty queue" } @@ -39,8 +39,8 @@ impl fmt::Display for PushError { } } -#[cfg(features = "std")] -impl std::error::Error for PushError { +#[cfg(feature = "std")] +impl ::std::error::Error for PushError { fn description(&self) -> &str { "pushing into a full queue" }