diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-03-17 16:01:31 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-03-17 16:01:31 +0100 |
commit | d801028335249e5cf126600e9a92da90e58c7eee (patch) | |
tree | 28ae975248f487f85666cd006d497500f5c26394 | |
parent | 653d4c4a9f6acf69da8be34c49a30a388d15f835 (diff) |
store the mount handles explicitly
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 120ab14..e33f007 100644 --- a/src/main.rs +++ b/src/main.rs @@ -115,8 +115,8 @@ fn mount_or_halt(part_id: u8, mount_point: &str, fs: &str) -> UnmountDrop<Mount> fn main() -> ExitCode { let mut stdout = StandardStream::stdout(ColorChoice::Always); - let _ = mount_or_halt(1, "/boot", "vfat"); - let _ = mount_or_halt(4, "/data", "ext4"); + let _boot_handle = mount_or_halt(1, "/boot", "vfat"); + let _data_handle = mount_or_halt(4, "/data", "ext4"); if process::id() != 1 { match stdout.set_color(ColorSpec::new().set_fg(Some(Color::Red))) { |