enable string_add lint

This commit is contained in:
Charles Hall 2024-05-12 19:01:29 -07:00
parent cc5977b4e4
commit 9abe4799db
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
5 changed files with 14 additions and 13 deletions

View file

@ -43,7 +43,7 @@ pub(crate) async fn create_content_route(
mxc.clone(),
body.filename
.as_ref()
.map(|filename| "inline; filename=".to_owned() + filename)
.map(|filename| format!("inline; filename={filename}"))
.as_deref(),
body.content_type.as_deref(),
&body.file,