Skip to content

Commit 55e2065

Browse files
committed
clippy fixes
Signed-off-by: Brian L. Troutwine <[email protected]>
1 parent 2591b50 commit 55e2065

File tree

1 file changed

+2
-1
lines changed
  • lading/src/generator/file_gen/logrotate_fs

1 file changed

+2
-1
lines changed

lading/src/generator/file_gen/logrotate_fs/model.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub(crate) struct File {
5151
/// happen -- or not.
5252
read_only: bool,
5353

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

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

0 commit comments

Comments
 (0)