This commit is contained in:
Mikaël Cluseau
2026-05-21 10:54:49 +02:00
parent 31bf15d37d
commit 9f240c6680
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ use log::info;
use std::path::Path;
use tokio::fs;
use crate::{File, base64_decode};
use crate::File;
pub async fn files(files: &[File], root: &str, dry_run: bool) -> Result<()> {
for f in files {
+1 -1
View File
@@ -153,7 +153,7 @@ impl<'t> Host<'t> {
pub async fn asset(
&self,
asset_name: &str,
asset_name: impl Display,
) -> Result<impl Stream<Item = reqwest::Result<Bytes>>> {
let req = self.dls.get(format!("hosts/{}/{asset_name}", self.name))?;
let resp = do_req(req, &self.dls.token).await?;
+1 -1
View File
@@ -171,7 +171,7 @@ impl FileKind {
}
impl FilePart {
pub fn content(&self) -> Result<Cow<[u8]>, base64::DecodeError> {
pub fn content(&self) -> Result<Cow<'_, [u8]>, base64::DecodeError> {
use FilePart::*;
Ok(match self {
Content(content) => Cow::Borrowed(content.as_bytes()),