From cc2ede7a809a23f2c9950a16648a6cdc8703b2c0 Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Mon, 29 Jul 2019 11:30:35 +0200 Subject: [PATCH] Use `$crate::` prefix for uses in macros --- src/internal_macros.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 {