manager: wiki: Fix deprecation warning about base64::encode()
This commit is contained in:
parent
c93f701ef8
commit
a6aa02aa40
|
@ -1,4 +1,5 @@
|
|||
use anyhow::Context as _;
|
||||
use base64::prelude::*;
|
||||
|
||||
pub async fn update_wiki_overview(
|
||||
forgejo: &forgejo_api::Forgejo,
|
||||
|
@ -13,7 +14,7 @@ pub async fn update_wiki_overview(
|
|||
&meta.name,
|
||||
"Home",
|
||||
forgejo_api::structs::CreateWikiPageOptions {
|
||||
content_base64: Some(base64::encode(new_body.as_bytes())),
|
||||
content_base64: Some(BASE64_STANDARD.encode(new_body.as_bytes())),
|
||||
message: Some(format!("Updated to latest model at {timestamp}")),
|
||||
title: Some("Home".to_owned()),
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue