From 716143b126b5e5f128eea5bd5be64c709fa158a8 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 26 Mar 2024 16:00:49 +0100 Subject: [PATCH] clippy --- crates/api_common/src/request.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/api_common/src/request.rs b/crates/api_common/src/request.rs index 370a9427b..1edc81d15 100644 --- a/crates/api_common/src/request.rs +++ b/crates/api_common/src/request.rs @@ -322,11 +322,11 @@ pub async fn replace_image( if new_image.is_some() { // Ignore errors because image may be stored externally. if let Some(avatar) = &old_image { - let image = LocalImage::delete_by_url(&mut context.pool(), &avatar) + let image = LocalImage::delete_by_url(&mut context.pool(), avatar) .await .ok(); if let Some(image) = image { - delete_image_from_pictrs(&image.pictrs_alias, &image.pictrs_delete_token, &context).await?; + delete_image_from_pictrs(&image.pictrs_alias, &image.pictrs_delete_token, context).await?; } } }