diff --git a/Cargo.lock b/Cargo.lock index 91aa29d..6c4a856 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1041,9 +1041,9 @@ dependencies = [ [[package]] name = "rust_util" -version = "0.6.3" +version = "0.6.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e9cf201657d8553fd7eddf4c20e00b1bdebca40e9fa2ede5c87f6874d02750f" +checksum = "782e73fb85259a3ac96cca39222b3f6c9ea507eea5d700b345d3f264fc34e860" dependencies = [ "lazy_static", "libc", diff --git a/src/main.rs b/src/main.rs index cd1f7a6..2c6016e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,6 @@ #[macro_use] extern crate lazy_static; #[macro_use] extern crate log; +#[macro_use] extern crate rust_util; use std::collections::HashMap; use std::{fs, panic, thread}; @@ -43,15 +44,6 @@ lazy_static!{ static ref CHECK_FAIL_MAP: Mutex> = Mutex::new(HashMap::new()); } -macro_rules! opt_value { - ($e: expr) => { - match $e { - Some(o) => o, - None => return, - } - } -} - fn main() { panic::set_hook(Box::new(|panic_info| { error!("Panic in running keeprunningd: {:?}", panic_info);