diff --git a/src/logger_handle.rs b/src/logger_handle.rs index 6de0e8f..300e260 100644 --- a/src/logger_handle.rs +++ b/src/logger_handle.rs @@ -25,7 +25,7 @@ use std::{ /// a buffering or asynchronous [`WriteMode`](crate::WriteMode)). /// /// `LoggerHandle` offers methods to modify the log specification programmatically, -/// to flush() the logger explicitly, and to reconfigure the used `FileLogWriter` -- +/// to flush the logger explicitly, and to reconfigure the used `FileLogWriter` -- /// if one is used. /// /// # Examples diff --git a/src/trc.rs b/src/trc.rs index 1a9ee29..9ec6f0d 100644 --- a/src/trc.rs +++ b/src/trc.rs @@ -138,6 +138,7 @@ impl LogSpecSubscriber for TraceLogSpecSubscriber { } } +#[allow(dead_code)] // not really appropriate, seems to be a bug in clippy /// Rereads the specfile if it was updated and forwards the update to `tracing`'s filter. pub struct SpecFileNotifier(Option>); diff --git a/src/write_mode.rs b/src/write_mode.rs index 957f333..72c1a74 100644 --- a/src/write_mode.rs +++ b/src/write_mode.rs @@ -117,6 +117,7 @@ pub enum WriteMode { pub(crate) enum EffectiveWriteMode { Direct, + #[allow(dead_code)] // introduced due to a bug in clippy, should be removed again BufferAndFlushWith(usize, Duration), #[cfg_attr(docsrs, doc(cfg(feature = "async")))] #[cfg(feature = "async")] diff --git a/src/writers/file_log_writer/builder.rs b/src/writers/file_log_writer/builder.rs index 5c95359..c171c65 100644 --- a/src/writers/file_log_writer/builder.rs +++ b/src/writers/file_log_writer/builder.rs @@ -248,10 +248,10 @@ impl FileLogWriterBuilder { line_ending: self.cfg_line_ending, write_mode: self.cfg_write_mode, file_spec: self.file_spec.clone(), - o_create_symlink: self.cfg_o_create_symlink.as_ref().map(Clone::clone), + o_create_symlink: self.cfg_o_create_symlink.clone(), use_utc: self.use_utc, }, - self.o_rotation_config.as_ref().map(Clone::clone), + self.o_rotation_config.clone(), cleanup_in_background_thread, )) }