Skip to content

Commit

Permalink
Remove unecessary clone
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdplm committed Oct 19, 2020
1 parent e821be9 commit d7c449e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracing-core/src/dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ pub fn set_default(dispatcher: Dispatch) -> DefaultGuard {
// When this guard is dropped, the default dispatcher will be reset to the
// prior default. Using this ensures that we always reset to the prior
// dispatcher even if the thread calling this function panics.
State::set_default(dispatcher.clone())
State::set_default(dispatcher)
}

/// Sets this dispatch as the global default for the duration of the entire program.
Expand Down

0 comments on commit d7c449e

Please sign in to comment.