From cd29866e1392061fbfc27eab2877128a118b566a Mon Sep 17 00:00:00 2001 From: "Brian L. Troutwine" Date: Wed, 23 Oct 2024 17:06:53 -0700 Subject: [PATCH] clippy fixes Signed-off-by: Brian L. Troutwine --- lading/src/generator/file_gen/model.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lading/src/generator/file_gen/model.rs b/lading/src/generator/file_gen/model.rs index 829e919fa..76138fab4 100644 --- a/lading/src/generator/file_gen/model.rs +++ b/lading/src/generator/file_gen/model.rs @@ -52,10 +52,6 @@ pub struct File { /// The ordinal number of this File. If the file is foo.log the ordinal /// number is 0, if foo.log.1 then 1 etc. ordinal: u8, - - /// The peer of this file, the next in line in rotation. So, if this file is - /// foo.log the peer will be foo.log.1 and its peer foo.log.2 etc. - peer: Option, } impl File { @@ -179,7 +175,6 @@ pub struct State { root_inode: Inode, now: Tick, block_cache: block::Cache, - max_rotations: u8, max_bytes_per_file: u64, } @@ -265,7 +260,6 @@ impl State { bytes_per_tick, read_only: false, - peer: None, ordinal: 0, }; nodes.insert( @@ -286,7 +280,6 @@ impl State { root_inode, now: 0, block_cache, - max_rotations, max_bytes_per_file, } } @@ -311,7 +304,7 @@ impl State { // nothing yet beyond updating the clock, rotations to come assert!(now >= self.now); - for (inode, node) in &mut self.nodes { + for node in self.nodes.values_mut() { match node { Node::File { file, .. } => { file.advance_time(now);