From c009210d4c0aef71f4d31f3bc41c3716e25f3871 Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Tue, 22 Feb 2022 20:13:24 +0000 Subject: [PATCH] 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. --- src/internal_macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal_macros.rs b/src/internal_macros.rs index 53ce2d60..188de28f 100644 --- a/src/internal_macros.rs +++ b/src/internal_macros.rs @@ -202,7 +202,7 @@ macro_rules! serde_string_impl { self.visit_str(v) } - fn visit_string(self, v: String) -> Result + fn visit_string(self, v: $crate::prelude::String) -> Result where E: $crate::serde::de::Error, { @@ -264,7 +264,7 @@ macro_rules! serde_struct_human_string_impl { self.visit_str(v) } - fn visit_string(self, v: String) -> Result + fn visit_string(self, v: $crate::prelude::String) -> Result where E: $crate::serde::de::Error, {