pub fn helper(res: Result) -> T where V: std::fmt::Debug, { match res { Ok(val) => val, Err(err) => { log::error!("{:?}", err); panic!("{:?}", err); } } }