Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Brian L. Troutwine <[email protected]>
  • Loading branch information
blt committed Oct 28, 2024
1 parent f5ddf46 commit 5cd5d12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lading/src/generator/file_gen/logrotate_fs/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub(crate) struct File {
/// happen -- or not.
read_only: bool,

/// When the file became read-only. Will only be Some if read_only is false.
/// When the file became read-only. Will only be Some if `read_only` is false.
read_only_since: Option<Tick>,

/// The peer of this file, the next in line in rotation. So, if this file is
Expand Down Expand Up @@ -508,6 +508,7 @@ impl State {
///
/// Will panic if passed `now` is less than recorded `now`. Time can only
/// advance.
#[allow(clippy::too_many_lines)]
pub(crate) fn advance_time(&mut self, now: Tick) {
assert!(now >= self.now);
let mut inodes: Vec<Inode> = self.nodes.keys().copied().collect();
Expand Down

0 comments on commit 5cd5d12

Please sign in to comment.