mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 15:26:30 +03:00
chore: clippy::useless-borrows-in-formatting fixes
This commit is contained in:
@@ -73,8 +73,7 @@ fn shorten_name(name: &str, length: usize) -> String {
|
||||
// We use _ rather than ... to avoid dots at the end of the URL, which would confuse linkifiers
|
||||
format!(
|
||||
"{}_",
|
||||
&name
|
||||
.chars()
|
||||
name.chars()
|
||||
.take(length.saturating_sub(1))
|
||||
.collect::<String>()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user