mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 06:56:29 +03:00
chore: nightly clippy fixes
This commit is contained in:
@@ -146,7 +146,7 @@ impl Summary {
|
||||
}
|
||||
|
||||
/// Returns the [`Summary::text`] attribute truncated to an approximate length.
|
||||
pub fn truncated_text(&self, approx_chars: usize) -> Cow<str> {
|
||||
pub fn truncated_text(&self, approx_chars: usize) -> Cow<'_, str> {
|
||||
truncate(&self.text, approx_chars)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user