Skip to content

Commit 8d99d70

Browse files
committed
cleanup
1 parent c0c7cde commit 8d99d70

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@ use nix::sched::{clone, unshare, CloneFlags};
1111
use nix::sys::prctl::set_pdeathsig;
1212
use nix::sys::signal::Signal;
1313
use nix::sys::wait::{waitpid, WaitStatus};
14-
use nix::unistd::{close, getgid, getpid, getuid, Gid, Pid, Uid};
15-
use once_cell::sync::OnceCell;
14+
use nix::unistd::{close, Gid, Uid};
1615
use std::ffi::OsString;
1716
use std::fs::OpenOptions;
1817
use std::io::Write;
19-
20-
use std::path::Path;
2118
use std::process::Command;
2219
use std::time::SystemTime;
2320
use std::{env, fs};
@@ -64,7 +61,10 @@ fn main() -> eyre::Result<()> {
6461

6562
let config = Config::build()?;
6663

67-
ensure!(!config.uid.is_root(), "hover-rs is not made to be run as root!");
64+
ensure!(
65+
!config.uid.is_root(),
66+
"hover-rs is not made to be run as root!"
67+
);
6868

6969
let (argv0, argv) = if args.command.is_empty() {
7070
(env::var("SHELL").ok().unwrap_or(String::from("sh")), vec![])

0 commit comments

Comments
 (0)