Use `$crate::` prefix for uses in macros

This commit is contained in:
Steven Roose 2019-07-29 11:30:35 +02:00
parent 2c2d55d90a
commit cc2ede7a80
No known key found for this signature in database
GPG Key ID: 2F2A88D7F8D68E87
1 changed files with 4 additions and 4 deletions

View File

@ -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 {