cargo fmt
This commit is contained in:
parent
97057db8d2
commit
ddf645e19e
4 changed files with 16 additions and 11 deletions
|
|
@ -108,7 +108,9 @@ impl Recorder {
|
|||
slog_term::CompactFormat::new(decorator).build(),
|
||||
move |record| record.level().is_at_least(filter_level),
|
||||
);
|
||||
let Ok(mutex) = Arc::try_unwrap(self.0) else { panic!("cannot unwrap Arc") }; // AsyncRecord does not implement Debug, so we cannot unwrap
|
||||
let Ok(mutex) = Arc::try_unwrap(self.0) else {
|
||||
panic!("cannot unwrap Arc")
|
||||
}; // AsyncRecord does not implement Debug, so we cannot unwrap
|
||||
for record in mutex.into_inner().unwrap() {
|
||||
record.log_to(&drain).unwrap();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue