Skip to content

Commit

Permalink
make eco_format!() macro usable in no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
idlercloud committed Sep 11, 2024
1 parent 17f8eec commit 4ddee1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ use crate::dynamic::{DynamicVec, InlineVec};
#[macro_export]
macro_rules! eco_format {
($($tts:tt)*) => {{
use ::std::fmt::Write;
use ::core::fmt::Write;
let mut s = $crate::EcoString::new();
::std::write!(s, $($tts)*).unwrap();
::core::write!(s, $($tts)*).unwrap();
s
}};
}
Expand Down

0 comments on commit 4ddee1c

Please sign in to comment.