From 4ddee1ca7d55c7bb5d2f234dc6aaf9fd4a93b109 Mon Sep 17 00:00:00 2001 From: idlercloud Date: Thu, 12 Sep 2024 01:17:29 +0800 Subject: [PATCH] make `eco_format!()` macro usable in `no_std` --- src/string.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/string.rs b/src/string.rs index 4be3e76..695a10d 100644 --- a/src/string.rs +++ b/src/string.rs @@ -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 }}; }