feat: use rust_util 0.6.17
This commit is contained in:
10
src/main.rs
10
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<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);
|
||||
|
||||
Reference in New Issue
Block a user