Skip to content

Commit

Permalink
updated readme for 0.2.
Browse files Browse the repository at this point in the history
0
  • Loading branch information
cfsamson committed Oct 18, 2023
1 parent 07cb3f2 commit 519f0c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ fn main() {

let mut out = vec![];
let mut ser = serde_json::Serializer::new(&mut out);
let base64_config = base64::Config::new(base64::CharacterSet::UrlSafe, true);
let ser = BytesRepr::base64(&mut ser, base64_config);
let base64_config = base64::engine::GeneralPurposeConfig::new();
let ser = ByteFmtSerializer::base64(&mut ser, base64::alphabet::URL_SAFE, base64_config);
demo.serialize(ser).unwrap();

let serialized = String::from_utf8(out).unwrap();
Expand Down

0 comments on commit 519f0c5

Please sign in to comment.