🚨 Fix clippy warnings

This commit is contained in:
2024-05-10 20:09:19 +02:00
parent c2918fbc78
commit 692a71faef
4 changed files with 21 additions and 23 deletions

View File

@@ -116,7 +116,7 @@ async fn fetch_text(req: String) -> RequestResult<String> {
async fn fetch_dicebear_svg(
r#type: &DicebearType,
req_fields: &Vec<String>,
req_fields: &[String],
placeholder_fetcher: Option<Box<impl Future<Output = Option<String>>>>,
) -> String {
// TODO: Use configuration file
@@ -146,7 +146,7 @@ async fn fetch_dicebear_svg(
}
#[cfg(feature = "desktop")]
fn gen_placeholder_fetcher<'a>(path: &'static str) -> Box<impl Future<Output = Option<String>>> {
fn gen_placeholder_fetcher(path: &'static str) -> Box<impl Future<Output = Option<String>>> {
let path = format!("./public/{}", &path);
Box::new(async move {
match read_to_string(&path).await {