Skip to content

Commit ccebb44

Browse files
Clippy fixes.
The previous "caching" PR introduced some redundant references.
1 parent 9204826 commit ccebb44

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/fat/volume.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ impl FatVolume {
192192
let fat_offset = cluster.0 * 2;
193193
let this_fat_block_num = self.lba_start + self.fat_start.offset_bytes(fat_offset);
194194
let this_fat_ent_offset = (fat_offset % Block::LEN_U32) as usize;
195-
let block =
196-
fat_block_cache.read(&volume_mgr, this_fat_block_num, "next_cluster")?;
195+
let block = fat_block_cache.read(volume_mgr, this_fat_block_num, "next_cluster")?;
197196
let fat_entry =
198197
LittleEndian::read_u16(&block[this_fat_ent_offset..=this_fat_ent_offset + 1]);
199198
match fat_entry {
@@ -215,8 +214,7 @@ impl FatVolume {
215214
let fat_offset = cluster.0 * 4;
216215
let this_fat_block_num = self.lba_start + self.fat_start.offset_bytes(fat_offset);
217216
let this_fat_ent_offset = (fat_offset % Block::LEN_U32) as usize;
218-
let block =
219-
fat_block_cache.read(&volume_mgr, this_fat_block_num, "next_cluster")?;
217+
let block = fat_block_cache.read(volume_mgr, this_fat_block_num, "next_cluster")?;
220218
let fat_entry =
221219
LittleEndian::read_u32(&block[this_fat_ent_offset..=this_fat_ent_offset + 3])
222220
& 0x0FFF_FFFF;

0 commit comments

Comments
 (0)