Skip to content

Commit

Permalink
Merge pull request #240 from dtolnay/stdwrite
Browse files Browse the repository at this point in the history
Avoid calling a nonstandard write! macro that might be in scope
  • Loading branch information
dtolnay committed Jul 6, 2023
2 parents 43f3a2a + 264b7d1 commit 6165f58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion impl/src/attr.rs
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)
thiserror::__private::write!(__formatter, #fmt #args)
});
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Expand Up @@ -252,4 +252,6 @@ pub mod __private {
pub use crate::display::{DisplayAsDisplay, PathAsDisplay};
#[cfg(provide_any)]
pub use crate::provide::ThiserrorProvide;

pub use std::write;
}

0 comments on commit 6165f58

Please sign in to comment.