mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
enable string_add lint
This commit is contained in:
parent
cc5977b4e4
commit
9abe4799db
5 changed files with 14 additions and 13 deletions
|
|
@ -44,7 +44,7 @@ where
|
|||
};
|
||||
|
||||
parts.path_and_query = Some(
|
||||
(old_path_and_query + symbol + "access_token=" + hs_token)
|
||||
format!("{old_path_and_query}{symbol}access_token={hs_token}")
|
||||
.parse()
|
||||
.unwrap(),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -1598,15 +1598,15 @@ pub(crate) async fn sync_events_v4_route(
|
|||
let name = match &*heroes {
|
||||
[] => None,
|
||||
[only] => Some(only.0.clone()),
|
||||
[firsts @ .., last] => Some(
|
||||
firsts
|
||||
[firsts @ .., last] => Some({
|
||||
let firsts = firsts
|
||||
.iter()
|
||||
.map(|h| h.0.clone())
|
||||
.collect::<Vec<_>>()
|
||||
.join(", ")
|
||||
+ " and "
|
||||
+ &last.0,
|
||||
),
|
||||
.join(", ");
|
||||
|
||||
format!("{firsts} and {}", last.0)
|
||||
}),
|
||||
};
|
||||
|
||||
let avatar = if let [only] = &*heroes {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue