misc: clippy: add unnecessary_semicolon

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
Philipp Schuster
2025-11-18 12:23:48 +01:00
committed by Rob Bradford
parent 06390342a6
commit 7cb73e9e56
36 changed files with 72 additions and 73 deletions

View File

@@ -398,7 +398,7 @@ impl Request {
.map_err(ExecuteError::Write)?;
}
RequestType::Unsupported(t) => return Err(ExecuteError::Unsupported(t)),
};
}
}
Ok(len)
}
@@ -901,7 +901,7 @@ impl DiskTopology {
};
if ret != 0 {
return Err(std::io::Error::last_os_error());
};
}
Ok(block_size)
}

View File

@@ -259,7 +259,7 @@ impl Write for RawFile {
// SAFETY: tmp_ptr was allocated by alloc_zeroed with layout
unsafe { dealloc(tmp_ptr, layout) };
return Err(io::Error::last_os_error());
};
}
tmp_buf[file_offset..(file_offset + buf_len)].copy_from_slice(buf);

View File

@@ -128,7 +128,7 @@ pub fn read(
_ => {
return Err(VhdxIoError::InvalidBatEntryState);
}
};
}
sector_count -= sector.free_sectors;
sector_index += sector.free_sectors;
read_count += sector.free_bytes as usize;
@@ -210,7 +210,7 @@ pub fn write(
_ => {
return Err(VhdxIoError::InvalidBatEntryState);
}
};
}
sector_count -= sector.free_sectors;
sector_index += sector.free_sectors;
write_count += sector.free_bytes as usize;