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

@ -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 {