Skip to content
Myr

Remove need for allow(unused_imports)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 9060b6b · Browse files · 2 files+5 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−3 removed

  • other:+5 added−3 removed

2 files+5 added−3 removed

modified:src/lib.rs+4 added-1 removed
520 unmodified lines
521522 #[cfg(backtrace)]523 use std::backtrace::Backtrace;524525 #[doc(hidden)]526 pub mod kind {525 pub use crate::kind::{AdhocKind, BoxedKind, TraitKind};527 pub use crate::kind::{AdhocKind, BoxedKind, TraitKind};528 }529530 pub fn new_adhoc<M>(message: M) -> Error531 where532 M: Display + Debug + Send + Sync + 'static,
4 unmodified lines
modified:src/macros.rs+1 added-2 removed
151 unmodified lines
152 // concise in the common case.153 $crate::private::new_adhoc($msg)154 };155 ($err:expr $(,)?) => ({156 #[allow(unused_imports)]157 use $crate::private::{AdhocKind, BoxedKind, TraitKind};156 use $crate::private::kind::*;157 let error = $err;158 (&error).anyhow_kind().new(error)159 });160 ($fmt:expr, $($arg:tt)*) => {
3 unmodified lines