forked from tokio-rs/tracing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tracing: fix span macros with log feature
Fixes the span macro to only substitute the field expressions once when the log feature is enabled. This stops enabling the log feature causing "use of moved value" errors and other odd behaviour. # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # On branch macros-with-log # Your branch is up to date with 'origin/macros-with-log'. # # Changes to be committed: # modified: ../tracing/src/macros.rs # # Changes not staged for commit: # modified: Cargo.toml # # Untracked files: # examples/log-move.rs #
- Loading branch information
Showing
1 changed file
with
32 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters