diff --git a/src/internal_macros.rs b/src/internal_macros.rs index d944c00d..4f6d47a2 100644 --- a/src/internal_macros.rs +++ b/src/internal_macros.rs @@ -357,8 +357,8 @@ macro_rules! serde_string_impl { where D: $crate::serde::de::Deserializer<'de>, { - use std::fmt::{self, Formatter}; - use std::str::FromStr; + use $crate::std::fmt::{self, Formatter}; + use $crate::std::str::FromStr; struct Visitor; impl<'de> $crate::serde::de::Visitor<'de> for Visitor { @@ -418,8 +418,8 @@ macro_rules! serde_struct_human_string_impl { D: $crate::serde::de::Deserializer<'de>, { if deserializer.is_human_readable() { - use std::fmt::{self, Formatter}; - use std::str::FromStr; + use $crate::std::fmt::{self, Formatter}; + use $crate::std::str::FromStr; struct Visitor; impl<'de> $crate::serde::de::Visitor<'de> for Visitor {