Skip to content

Commit

Permalink
Avoid calling a nonstandard write! macro that might be in scope
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jul 7, 2023
1 parent 900f018 commit cab9fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impl/src/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl ToTokens for Display<'_> {
let fmt = &self.fmt;
let args = &self.args;
tokens.extend(quote! {
write!(__formatter, #fmt #args)
std::write!(__formatter, #fmt #args)
});
}
}
Expand Down

0 comments on commit cab9fec

Please sign in to comment.