Pass an owned value to log's methods? #701
Labels
No labels
bug
duplicate
easy
enhancement
help wanted
invalid
question
rfc
structured-logging
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-rust-lang/log#701
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi @KodrAus @Thomasdezeeuw,
According to the following code:
github.com/rust-lang/log@6e1735597b/src/__private_api.rs (L81)github.com/rust-lang/log@6e1735597b/src/__private_api.rs (L103-L105)Given that
Record<'a>andMetadata<'a>already conatins all refs in their fields, and we have an owned value at the caller side, I'd like to know why we pass a ref&Recordand&Metadatainstead ofRecord<'a>andMetadata<'a>, to thelogandenabledmethod.I mean, is it possible to change (despite it's a breaking change, just think of it technically):
into
Any downside?