Skip to content

Commit

Permalink
fix clippy after adding svg sanitization (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebadob authored Nov 12, 2024
1 parent 6e20e77 commit 1cc2f00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/src/entity/logos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ impl Logo {

async fn upsert_svg(
id: String,
logo: Vec<u8>,
mut logo: Vec<u8>,
content_type: String,
typ: &LogoType,
) -> Result<(), ErrorResponse> {
Expand All @@ -205,7 +205,7 @@ impl Logo {
id,
res: LogoRes::Svg,
content_type,
data: Self::sanitize_svg(&mut logo.as_bytes())?,
data: Self::sanitize_svg(logo.as_mut_slice())?,
};
slf.upsert_self(typ, true).await
}
Expand Down

0 comments on commit 1cc2f00

Please sign in to comment.