feat: use rust_util 0.6.17

This commit is contained in:
2020-11-22 23:52:16 +08:00
parent 8d6f3c2cb5
commit abdf6f725c
2 changed files with 3 additions and 11 deletions

View File

@@ -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<HashMap<String, u64>> = 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);