Use full path for String in macro

As is done in the rest of the `internal_macros` module use the fully
qualified path for the `String` type.

Done in preparation for using `serde_string_impl` in the `sighash`
module.
This commit is contained in:
Tobin Harding 2022-02-22 20:13:24 +00:00
parent db23006ff5
commit c009210d4c
1 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ macro_rules! serde_string_impl {
self.visit_str(v) self.visit_str(v)
} }
fn visit_string<E>(self, v: String) -> Result<Self::Value, E> fn visit_string<E>(self, v: $crate::prelude::String) -> Result<Self::Value, E>
where where
E: $crate::serde::de::Error, E: $crate::serde::de::Error,
{ {
@ -264,7 +264,7 @@ macro_rules! serde_struct_human_string_impl {
self.visit_str(v) self.visit_str(v)
} }
fn visit_string<E>(self, v: String) -> Result<Self::Value, E> fn visit_string<E>(self, v: $crate::prelude::String) -> Result<Self::Value, E>
where where
E: $crate::serde::de::Error, E: $crate::serde::de::Error,
{ {