cargo fmt

This commit is contained in:
Adrian Heine 2025-09-02 11:47:36 +02:00
parent 97057db8d2
commit ddf645e19e
4 changed files with 16 additions and 11 deletions

View file

@ -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();
}