rustfmt
This commit is contained in:
parent
cbe276fc06
commit
0a1631e66c
13 changed files with 766 additions and 381 deletions
|
|
@ -2,10 +2,10 @@ use log::error;
|
|||
|
||||
pub fn unwrap_print_err<T, E>(r: Result<T, E>) -> T
|
||||
where
|
||||
E: std::fmt::Debug
|
||||
E: std::fmt::Debug,
|
||||
{
|
||||
if let Err(ref error) = r {
|
||||
error!("{:?}", error);
|
||||
}
|
||||
r.unwrap()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue