Skip to content

Commit

Permalink
chore: fix rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Apr 21, 2023
1 parent 2235570 commit 53989b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
10 changes: 2 additions & 8 deletions tracing-futures/tests/std_future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,13 @@ fn span_on_drop() {

let subscriber = subscriber::mock()
.enter(span::mock().named("foo"))
.event(
event::mock()
.at_level(Level::INFO),
)
.event(event::mock().at_level(Level::INFO))
.exit(span::mock().named("foo"))
.enter(span::mock().named("foo"))
.exit(span::mock().named("foo"))
.drop_span(span::mock().named("foo"))
.enter(span::mock().named("bar"))
.event(
event::mock()
.at_level(Level::INFO),
)
.event(event::mock().at_level(Level::INFO))
.exit(span::mock().named("bar"))
.drop_span(span::mock().named("bar"))
.done()
Expand Down
1 change: 0 additions & 1 deletion tracing/src/instrument.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

use crate::{
dispatcher::{self, Dispatch},
span::Span,
Expand Down
10 changes: 2 additions & 8 deletions tracing/tests/instrument.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,13 @@ fn span_on_drop() {

let subscriber = subscriber::mock()
.enter(span::mock().named("foo"))
.event(
event::mock()
.at_level(Level::INFO),
)
.event(event::mock().at_level(Level::INFO))
.exit(span::mock().named("foo"))
.enter(span::mock().named("foo"))
.exit(span::mock().named("foo"))
.drop_span(span::mock().named("foo"))
.enter(span::mock().named("bar"))
.event(
event::mock()
.at_level(Level::INFO),
)
.event(event::mock().at_level(Level::INFO))
.exit(span::mock().named("bar"))
.drop_span(span::mock().named("bar"))
.done()
Expand Down

0 comments on commit 53989b4

Please sign in to comment.