Skip to content

Commit 05a1656

Browse files
committed
clippy fixes
Signed-off-by: Brian L. Troutwine <[email protected]>
1 parent 5164d2a commit 05a1656

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lading/src/generator/file_gen/model.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ pub struct File {
5252
/// The ordinal number of this File. If the file is foo.log the ordinal
5353
/// number is 0, if foo.log.1 then 1 etc.
5454
ordinal: u8,
55-
56-
/// The peer of this file, the next in line in rotation. So, if this file is
57-
/// foo.log the peer will be foo.log.1 and its peer foo.log.2 etc.
58-
peer: Option<Inode>,
5955
}
6056

6157
impl File {
@@ -179,7 +175,6 @@ pub struct State {
179175
root_inode: Inode,
180176
now: Tick,
181177
block_cache: block::Cache,
182-
max_rotations: u8,
183178
max_bytes_per_file: u64,
184179
}
185180

@@ -265,7 +260,6 @@ impl State {
265260
bytes_per_tick,
266261

267262
read_only: false,
268-
peer: None,
269263
ordinal: 0,
270264
};
271265
nodes.insert(
@@ -286,7 +280,6 @@ impl State {
286280
root_inode,
287281
now: 0,
288282
block_cache,
289-
max_rotations,
290283
max_bytes_per_file,
291284
}
292285
}
@@ -311,7 +304,7 @@ impl State {
311304
// nothing yet beyond updating the clock, rotations to come
312305
assert!(now >= self.now);
313306

314-
for (inode, node) in &mut self.nodes {
307+
for node in self.nodes.values_mut() {
315308
match node {
316309
Node::File { file, .. } => {
317310
file.advance_time(now);

0 commit comments

Comments
 (0)