diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-11-13 19:54:26 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-11-13 19:54:26 +0100 |
commit | 9d1031fa268faf8eaa9871250f2c1e8126d85a1f (patch) | |
tree | 6f1e0616eefa645e4fbb648204c1eb7aca34068c | |
parent | 7bf851d9e42b795a7fdb8a8a4f8911b72ed20d24 (diff) |
remove unused ExitCode return type from main
-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 bf254c1..31a035f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ use std::fs::{self, DirEntry, File}; use std::io::{BufRead, BufReader, Seek, Write}; use std::path::Path; -use std::process::{self, ChildStderr, ChildStdout, Command, ExitCode, Stdio}; +use std::process::{self, ChildStderr, ChildStdout, Command, Stdio}; use std::thread; use std::time::{Duration, SystemTime}; @@ -223,7 +223,7 @@ fn mount_or_halt(part_id: u8, mount_point: &str, fs: &str) -> UnmountDrop<Mount> } } -fn main() -> ExitCode { +fn main() { if process::id() != 1 { log!(Color::Red, "[ ERROR ] must be run as PID 1"); halt!(); |