Przeglądaj źródła

refactor(main): make std::process::exit global

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 lat temu
rodzic
commit
e68b3b45ef
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      src/main.rs

+ 1 - 2
src/main.rs

@@ -27,6 +27,7 @@ use std::env;
 use std::ffi::{OsStr, OsString};
 use std::io::{self, Write, ErrorKind};
 use std::path::{Component, PathBuf};
+use std::process::exit;
 
 use ansiterm::{ANSIStrings, Style};
 
@@ -87,8 +88,6 @@ lazy_static! {
 }
 
 fn main() {
-    use std::process::exit;
-
     #[cfg(unix)]
     unsafe {
         libc::signal(libc::SIGPIPE, libc::SIG_DFL);