Avoid calling a nonstandard write! macro that might be in scope
This commit is contained in:
parent
43f3a2a661
commit
264b7d1936
|
@ -197,7 +197,7 @@ impl ToTokens for Display<'_> {
|
||||||
let fmt = &self.fmt;
|
let fmt = &self.fmt;
|
||||||
let args = &self.args;
|
let args = &self.args;
|
||||||
tokens.extend(quote! {
|
tokens.extend(quote! {
|
||||||
write!(__formatter, #fmt #args)
|
thiserror::__private::write!(__formatter, #fmt #args)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -252,4 +252,6 @@ pub mod __private {
|
||||||
pub use crate::display::{DisplayAsDisplay, PathAsDisplay};
|
pub use crate::display::{DisplayAsDisplay, PathAsDisplay};
|
||||||
#[cfg(provide_any)]
|
#[cfg(provide_any)]
|
||||||
pub use crate::provide::ThiserrorProvide;
|
pub use crate::provide::ThiserrorProvide;
|
||||||
|
|
||||||
|
pub use std::write;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue