Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
YtvwlD committed Jun 14, 2024
1 parent fb64d70 commit 3426138
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion towboot/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ fn efi_main(image: Handle, mut systab: SystemTable<Boot>) -> Status {
Ok(e) => {
info!("booting {entry_to_boot}...");
e.boot(systab);
unreachable!();
},
Err(e) => {
error!("failed to prepare the entry: {e:?}");
Expand Down
1 change: 1 addition & 0 deletions towbootctl/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ impl Image {
.read(true)
.write(true)
.create(true)
.truncate(true)
.open(path)?);
file.set_len(size)?;
// protective MBR
Expand Down
2 changes: 1 addition & 1 deletion towbootctl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn get_config_files(config: &mut Config) -> Result<Vec<(PathBuf, PathBuf)>> {
paths.push((src_path, dst_path));
}

return Ok(paths);
Ok(paths)
}

/// Joins a slice of strings.
Expand Down

0 comments on commit 3426138

Please sign in to comment.