blob: 32652716f564e48b14a2ff32837d71486a7859ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
pub fn helper<T, V>(res: Result<T, V>) -> T
where
V: std::fmt::Debug,
{
match res {
Ok(val) => val,
Err(err) => {
log::error!("{:?}", err);
panic!("{:?}", err);
}
}
}
|