From 452448eb47b8d0ba6238d79b057d71723a47d50a Mon Sep 17 00:00:00 2001 From: Vesa Vilhonen Date: Sun, 7 Feb 2021 10:14:57 +0200 Subject: [PATCH] Use std Result instead of undocumented re-exported version from serde --- cloudflare/src/framework/json_utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudflare/src/framework/json_utils.rs b/cloudflare/src/framework/json_utils.rs index 2ce67482..b42d928b 100644 --- a/cloudflare/src/framework/json_utils.rs +++ b/cloudflare/src/framework/json_utils.rs @@ -1,7 +1,7 @@ use serde::de; /// Serializes a vector of bytes as a base64 encoded string. -pub fn serialize_base64_str(val: &[u8], serializer: S) -> serde::export::Result +pub fn serialize_base64_str(val: &[u8], serializer: S) -> Result where S: serde::Serializer, { @@ -22,7 +22,7 @@ where write!(formatter, "base64 ASCII text") } - fn visit_str(self, v: &str) -> serde::export::Result + fn visit_str(self, v: &str) -> Result where E: de::Error, {