Skip to content

Commit

Permalink
explain format_with
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Oct 2, 2024
1 parent 35ac702 commit cab49b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/exex/exex/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ where
.format_with(", ", |(exex_id, num_hash), f| {
f(&format_args!("{exex_id} = {num_hash:?}"))
})
// We need this because `debug!` uses the argument twice when formatting the final
// log message, but the result of `format_with` can only be used once
.to_string();
debug!(
target: "exex::manager",
Expand Down

0 comments on commit cab49b9

Please sign in to comment.