From cc9cb7fac09f1a8396f7593a37be55154e40f5a6 Mon Sep 17 00:00:00 2001 From: Jeremy Fitzhardinge Date: Mon, 17 Oct 2022 22:17:18 -0700 Subject: [PATCH] Fix nightly warnings --- tracing-appender/src/lib.rs | 1 - tracing-attributes/src/lib.rs | 1 - tracing-core/src/field.rs | 1 + tracing-core/src/lib.rs | 1 - tracing-error/src/lib.rs | 1 - tracing-flame/src/lib.rs | 4 +--- tracing-futures/src/executor/mod.rs | 2 -- tracing-futures/src/lib.rs | 1 - tracing-log/src/lib.rs | 1 - tracing-serde/src/lib.rs | 1 - tracing-subscriber/src/lib.rs | 1 - tracing-tower/src/lib.rs | 1 - tracing/src/field.rs | 1 + tracing/src/lib.rs | 1 - 14 files changed, 3 insertions(+), 15 deletions(-) diff --git a/tracing-appender/src/lib.rs b/tracing-appender/src/lib.rs index 43f946a486..3bb1016820 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/lib.rs b/tracing-attributes/src/lib.rs index 13adc2ff75..4e856c899d 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-core/src/field.rs b/tracing-core/src/field.rs index 7b6e2cc6e7..12697fd402 100644 --- a/tracing-core/src/field.rs +++ b/tracing-core/src/field.rs @@ -231,6 +231,7 @@ pub trait Visit { /// Note: This is only enabled when the Rust standard library is /// present. /// + /// #[cfg(feature = "std")] #[cfg_attr(docsrs, doc(cfg(feature = "std")))] fn record_error(&mut self, field: &Field, value: &(dyn std::error::Error + 'static)) { diff --git a/tracing-core/src/lib.rs b/tracing-core/src/lib.rs index 41390c07ad..1ac413d284 100644 --- a/tracing-core/src/lib.rs +++ b/tracing-core/src/lib.rs @@ -146,7 +146,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 6b73773b78..1cbf283ddb 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 0c36f6176c..dea0278b11 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, @@ -134,8 +133,7 @@ while_true )] -pub use error::Error; - +use error::Error; use error::Kind; use once_cell::sync::Lazy; use std::cell::Cell; diff --git a/tracing-futures/src/executor/mod.rs b/tracing-futures/src/executor/mod.rs index 442b523b84..ced3b5a460 100644 --- a/tracing-futures/src/executor/mod.rs +++ b/tracing-futures/src/executor/mod.rs @@ -1,7 +1,5 @@ #[cfg(feature = "futures-01")] mod futures_01; -#[cfg(feature = "futures-01")] -pub use self::futures_01::*; #[cfg(feature = "futures_preview")] mod futures_preview; diff --git a/tracing-futures/src/lib.rs b/tracing-futures/src/lib.rs index 8cf9745036..a2aa677655 100644 --- a/tracing-futures/src/lib.rs +++ b/tracing-futures/src/lib.rs @@ -83,7 +83,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 dd407dab47..0200f9f791 100644 --- a/tracing-log/src/lib.rs +++ b/tracing-log/src/lib.rs @@ -109,7 +109,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 186c976ad1..1721ac3087 100644 --- a/tracing-serde/src/lib.rs +++ b/tracing-serde/src/lib.rs @@ -153,7 +153,6 @@ rust_2018_idioms, unreachable_pub, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns, diff --git a/tracing-subscriber/src/lib.rs b/tracing-subscriber/src/lib.rs index e05a914600..3b8a5c77ab 100644 --- a/tracing-subscriber/src/lib.rs +++ b/tracing-subscriber/src/lib.rs @@ -150,7 +150,6 @@ rust_2018_idioms, unreachable_pub, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns, diff --git a/tracing-tower/src/lib.rs b/tracing-tower/src/lib.rs index 1909440029..41ec704970 100644 --- a/tracing-tower/src/lib.rs +++ b/tracing-tower/src/lib.rs @@ -10,7 +10,6 @@ rust_2018_idioms, unreachable_pub, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns, diff --git a/tracing/src/field.rs b/tracing/src/field.rs index 40937f01d4..55467ebd82 100644 --- a/tracing/src/field.rs +++ b/tracing/src/field.rs @@ -15,6 +15,7 @@ use crate::Metadata; /// should be used whenever possible. /// /// +/// pub trait AsField: crate::sealed::Sealed { /// Attempts to convert `&self` into a `Field` with the specified `metadata`. /// diff --git a/tracing/src/lib.rs b/tracing/src/lib.rs index e5b0bc8484..77b15e0fe1 100644 --- a/tracing/src/lib.rs +++ b/tracing/src/lib.rs @@ -930,7 +930,6 @@ rust_2018_idioms, unreachable_pub, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns,