Skip to content

Commit

Permalink
Use std Result instead of undocumented re-exported version from serde
Browse files Browse the repository at this point in the history
  • Loading branch information
vvilhonen authored and sssilver committed Feb 7, 2021
1 parent 3074a62 commit 452448e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudflare/src/framework/json_utils.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use serde::de;

/// Serializes a vector of bytes as a base64 encoded string.
pub fn serialize_base64_str<S>(val: &[u8], serializer: S) -> serde::export::Result<S::Ok, S::Error>
pub fn serialize_base64_str<S>(val: &[u8], serializer: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,
{
Expand All @@ -22,7 +22,7 @@ where
write!(formatter, "base64 ASCII text")
}

fn visit_str<E>(self, v: &str) -> serde::export::Result<Self::Value, E>
fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>
where
E: de::Error,
{
Expand Down

0 comments on commit 452448e

Please sign in to comment.