diff --git a/src/enc/impls.rs b/src/enc/impls.rs index 81fa66ae..c8b1a46c 100644 --- a/src/enc/impls.rs +++ b/src/enc/impls.rs @@ -478,6 +478,7 @@ where } #[cfg(test)] +#[cfg(feature = "std")] mod tests { use crate::enc::impls::encode_utf8; use crate::features::IoWriter;