Skip to content

Commit

Permalink
refactor: oxidize
Browse files Browse the repository at this point in the history
  • Loading branch information
ErrorNoInternet committed Feb 9, 2024
1 parent 5a14ef7 commit 1c92791
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/block_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl BlockDevice for Virtual {
if self.zero_trim {
let zeros = vec![0; len as usize];
match self.files.overlay.write_all_at(&zeros, offset) {
Ok(_) => (),
Ok(()) => (),
Err(error) => {
eprintln!(
"overmask: couldn't write {len} zeros to overlay file at offset {offset}: {error}"
Expand All @@ -159,7 +159,7 @@ impl BlockDevice for Virtual {
}
};
match self.files.mask.write_all_at(&zeros, offset) {
Ok(_) => (),
Ok(()) => (),
Err(error) => {
eprintln!(
"overmask: couldn't write {len} zeros to mask file at offset {offset}: {error}"
Expand Down
2 changes: 1 addition & 1 deletion src/modes/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub fn main(files: &Files, seed_file: &PathBuf, force: bool) {
exit(2);
}

let writeable_seed = match fs::File::options().read(true).write(true).open(&seed_file) {
let writeable_seed = match fs::File::options().read(true).write(true).open(seed_file) {
Ok(file) => file,
Err(error) => {
eprintln!("overmask: couldn't open seed file: {error}");
Expand Down

0 comments on commit 1c92791

Please sign in to comment.