From 695d04455631724a3f75d67476abd42a4b61be99 Mon Sep 17 00:00:00 2001 From: "Brian L. Troutwine" Date: Mon, 28 Oct 2024 16:15:54 -0700 Subject: [PATCH] clippy fixes Signed-off-by: Brian L. Troutwine --- lading/src/generator/file_gen/logrotate_fs/model.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lading/src/generator/file_gen/logrotate_fs/model.rs b/lading/src/generator/file_gen/logrotate_fs/model.rs index 2d5862db7..045544171 100644 --- a/lading/src/generator/file_gen/logrotate_fs/model.rs +++ b/lading/src/generator/file_gen/logrotate_fs/model.rs @@ -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, /// The peer of this file, the next in line in rotation. So, if this file is @@ -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 = self.nodes.keys().copied().collect();