Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
thoren-d committed Mar 24, 2022
1 parent bedb9b3 commit 92dd76d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,17 +489,14 @@ where
fn on_record(&self, id: &span::Id, values: &span::Record<'_>, ctx: Context<'_, S>) {
if self.include_args {
let span = ctx.span(id).unwrap();
let mut exts = span
.extensions_mut();
let mut exts = span.extensions_mut();

let args = exts
.get_mut::<ArgsWrapper>();
let args = exts.get_mut::<ArgsWrapper>();

if let Some(args) = args {
let args = Arc::make_mut(&mut args.args);
values.record(&mut JsonVisitor { object: args });
}

}
}

Expand Down

0 comments on commit 92dd76d

Please sign in to comment.