mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-11-29 14:10:27 +08:00
meta: update dependency versions
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
use std::ops::Deref;
|
||||
|
||||
use base64::Engine;
|
||||
use radicle_git_ext::Oid;
|
||||
#[cfg(feature = "serde")]
|
||||
use serde::{
|
||||
@@ -136,7 +137,7 @@ where
|
||||
match std::str::from_utf8(bytes) {
|
||||
Ok(s) => state.serialize_field("content", s)?,
|
||||
Err(_) => {
|
||||
let encoded = base64::encode(bytes);
|
||||
let encoded = base64::prelude::BASE64_STANDARD.encode(bytes);
|
||||
state.serialize_field("content", &encoded)?
|
||||
}
|
||||
};
|
||||
@@ -160,7 +161,7 @@ impl<'a> Serialize for BlobRef<'a> {
|
||||
match std::str::from_utf8(bytes) {
|
||||
Ok(s) => state.serialize_field("content", s)?,
|
||||
Err(_) => {
|
||||
let encoded = base64::encode(bytes);
|
||||
let encoded = base64::prelude::BASE64_STANDARD.encode(bytes);
|
||||
state.serialize_field("content", &encoded)?
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user