diff options
author | Sam Scott <sam.scott89@gmail.com> | 2017-11-07 21:50:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-07 21:50:32 +0000 |
commit | 1ee313aa2998feed7d1721e0df8db0e7004fb35d (patch) | |
tree | 82a2b2e45330877ff3fee31a577d2a74f81575d3 /src/ser.rs | |
parent | 69d4634b3ac7a9547112b87a3bb564eda8e63c25 (diff) | |
parent | 2876bd3dd12a71938107472fb6a42ce3c321aa3a (diff) |
Merge pull request #12 from ia0/update_data_encoding
Update data-encoding major version
Diffstat (limited to 'src/ser.rs')
-rw-r--r-- | src/ser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ //! Serialization support for querystrings. -use data_encoding::base64url as base64; +use data_encoding::BASE64URL_NOPAD as BASE64; use serde::ser; use url::form_urlencoded::Serializer as UrlEncodedSerializer; use url::form_urlencoded::Target as UrlEncodedTarget; @@ -131,7 +131,7 @@ impl<'a, Target: 'a + UrlEncodedTarget> ser::Serializer for &'a mut QsSerializer } fn serialize_bytes(self, value: &[u8]) -> Result<Self::Ok> { - self.write_value(&base64::encode_nopad(value)) + self.write_value(&BASE64.encode(value)) } @@ -436,7 +436,7 @@ impl ser::Serializer for StringSerializer { fn serialize_bytes(self, value: &[u8]) -> Result<Self::Ok> { - Ok(base64::encode_nopad(value)) + Ok(BASE64.encode(value)) } /// Returns an error. |