more clippy fixes:

clippy::match_like_matches_macro
clippy::to_string_in_format_args
clippy::single_char_add_str
clippy::filter_map_identity
clippy::clone_on_copy
clippy::useless_format
clippy::unused_unit
This commit is contained in:
Matthias Krüger 2022-03-12 15:30:07 +01:00
parent 77790f2b8e
commit 56e4ea59d9
12 changed files with 18 additions and 25 deletions

View file

@ -94,7 +94,7 @@ impl TextEdit {
let text_size = TextSize::of(&*text);
let mut total_len = text_size;
let mut max_total_len = text_size.clone();
let mut max_total_len = text_size;
for indel in &self.indels {
total_len += TextSize::of(&indel.insert);
total_len -= indel.delete.len();