We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1774402 commit df5468fCopy full SHA for df5468f
src/lib.rs
@@ -12,7 +12,10 @@ macro_rules! invalid_data_error {
12
::core2::io::Error::new(::core2::io::ErrorKind::InvalidData, $fmt)
13
};
14
($fmt:expr, $($arg:tt)*) => {
15
- ::core2::io::Error::new(::core2::io::ErrorKind::InvalidData, format!($fmt, $($arg)*))
+ ::core2::io::Error::new(
16
+ ::core2::io::ErrorKind::InvalidData,
17
+ ::alloc::format!($fmt, $($arg)*),
18
+ )
19
20
}
21
0 commit comments