diff --git a/tracing-appender/src/lib.rs b/tracing-appender/src/lib.rs index 42346b8491..b93d18fec1 100644 --- a/tracing-appender/src/lib.rs +++ b/tracing-appender/src/lib.rs @@ -133,7 +133,6 @@ rust_2018_idioms, unreachable_pub, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns, diff --git a/tracing-attributes/src/expand.rs b/tracing-attributes/src/expand.rs index 7005b4423e..cb12ad87e4 100644 --- a/tracing-attributes/src/expand.rs +++ b/tracing-attributes/src/expand.rs @@ -134,7 +134,7 @@ fn gen_block( .into_iter() .flat_map(|param| match param { FnArg::Typed(PatType { pat, ty, .. }) => { - param_names(*pat, RecordType::parse_from_ty(&*ty)) + param_names(*pat, RecordType::parse_from_ty(&ty)) } FnArg::Receiver(_) => Box::new(iter::once(( Ident::new("self", param.span()), diff --git a/tracing-attributes/src/lib.rs b/tracing-attributes/src/lib.rs index f5974e4e52..cc0b8e5198 100644 --- a/tracing-attributes/src/lib.rs +++ b/tracing-attributes/src/lib.rs @@ -64,7 +64,6 @@ rust_2018_idioms, unreachable_pub, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns, diff --git a/tracing-attributes/tests/ui/async_instrument.stderr b/tracing-attributes/tests/ui/async_instrument.stderr index db6f6b4343..519b71e045 100644 --- a/tracing-attributes/tests/ui/async_instrument.stderr +++ b/tracing-attributes/tests/ui/async_instrument.stderr @@ -93,6 +93,6 @@ error[E0308]: mismatched types 42 | async fn extra_semicolon() -> i32 { | ___________________________________^ 43 | | 1; - | | - help: remove this semicolon + | | - help: remove this semicolon to return this value 44 | | } | |_^ expected `i32`, found `()` diff --git a/tracing-core/src/dispatcher.rs b/tracing-core/src/dispatcher.rs index 36b3cfd85f..7f2f4060aa 100644 --- a/tracing-core/src/dispatcher.rs +++ b/tracing-core/src/dispatcher.rs @@ -368,7 +368,7 @@ where CURRENT_STATE .try_with(|state| { if let Some(entered) = state.enter() { - return f(&*entered.current()); + return f(&entered.current()); } f(&Dispatch::none()) @@ -390,7 +390,7 @@ pub fn get_current(f: impl FnOnce(&Dispatch) -> T) -> Option { CURRENT_STATE .try_with(|state| { let entered = state.enter()?; - Some(f(&*entered.current())) + Some(f(&entered.current())) }) .ok()? } diff --git a/tracing-core/src/lib.rs b/tracing-core/src/lib.rs index c1f87b22f0..694f0f5a03 100644 --- a/tracing-core/src/lib.rs +++ b/tracing-core/src/lib.rs @@ -129,7 +129,6 @@ rust_2018_idioms, unreachable_pub, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns, diff --git a/tracing-error/src/lib.rs b/tracing-error/src/lib.rs index b94205ceeb..e3ba0ac743 100644 --- a/tracing-error/src/lib.rs +++ b/tracing-error/src/lib.rs @@ -190,7 +190,6 @@ rust_2018_idioms, unreachable_pub, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns, diff --git a/tracing-flame/src/lib.rs b/tracing-flame/src/lib.rs index f7d670aa61..51dd436d34 100644 --- a/tracing-flame/src/lib.rs +++ b/tracing-flame/src/lib.rs @@ -117,7 +117,6 @@ rust_2018_idioms, unreachable_pub, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns, diff --git a/tracing-futures/src/lib.rs b/tracing-futures/src/lib.rs index 2712c160ac..100f16ce18 100644 --- a/tracing-futures/src/lib.rs +++ b/tracing-futures/src/lib.rs @@ -81,7 +81,6 @@ rust_2018_idioms, unreachable_pub, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns, diff --git a/tracing-log/src/lib.rs b/tracing-log/src/lib.rs index 44b3f1d32d..e2eff92014 100644 --- a/tracing-log/src/lib.rs +++ b/tracing-log/src/lib.rs @@ -112,7 +112,6 @@ rust_2018_idioms, unreachable_pub, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns, diff --git a/tracing-serde/src/lib.rs b/tracing-serde/src/lib.rs index f099853ec0..6530e09478 100644 --- a/tracing-serde/src/lib.rs +++ b/tracing-serde/src/lib.rs @@ -168,7 +168,6 @@ rust_2018_idioms, unreachable_pub, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns, diff --git a/tracing-subscriber/src/filter/targets.rs b/tracing-subscriber/src/filter/targets.rs index e1407114b5..58ccfe4d21 100644 --- a/tracing-subscriber/src/filter/targets.rs +++ b/tracing-subscriber/src/filter/targets.rs @@ -324,7 +324,7 @@ impl Targets { /// assert_eq!(filter.default_level(), Some(LevelFilter::OFF)); /// ``` pub fn default_level(&self) -> Option { - self.0.directives().into_iter().find_map(|d| { + self.0.directives().find_map(|d| { if d.target.is_none() { Some(d.level) } else { diff --git a/tracing-subscriber/src/lib.rs b/tracing-subscriber/src/lib.rs index 8089230071..63cd3d3154 100644 --- a/tracing-subscriber/src/lib.rs +++ b/tracing-subscriber/src/lib.rs @@ -180,7 +180,6 @@ rust_2018_idioms, unreachable_pub, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns, diff --git a/tracing-subscriber/src/registry/sharded.rs b/tracing-subscriber/src/registry/sharded.rs index 7978997678..07c94fccb5 100644 --- a/tracing-subscriber/src/registry/sharded.rs +++ b/tracing-subscriber/src/registry/sharded.rs @@ -422,7 +422,7 @@ impl<'a> SpanData<'a> for Data<'a> { } fn metadata(&self) -> &'static Metadata<'static> { - (*self).inner.metadata + self.inner.metadata } fn parent(&self) -> Option<&Id> { diff --git a/tracing-tower/src/lib.rs b/tracing-tower/src/lib.rs index 633dbb599b..3510071b40 100644 --- a/tracing-tower/src/lib.rs +++ b/tracing-tower/src/lib.rs @@ -9,7 +9,6 @@ rust_2018_idioms, unreachable_pub, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns, diff --git a/tracing/src/lib.rs b/tracing/src/lib.rs index 342e04a825..3d70d7189a 100644 --- a/tracing/src/lib.rs +++ b/tracing/src/lib.rs @@ -911,7 +911,6 @@ rust_2018_idioms, unreachable_pub, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns,