Skip to content

Commit

Permalink
Fix clippies
Browse files Browse the repository at this point in the history
  • Loading branch information
emabee committed Jan 22, 2024
1 parent f940895 commit 9bd6241
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/logger_handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/trc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Debouncer<RecommendedWatcher>>);

Expand Down
1 change: 1 addition & 0 deletions src/write_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
4 changes: 2 additions & 2 deletions src/writers/file_log_writer/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
))
}
Expand Down

0 comments on commit 9bd6241

Please sign in to comment.