Skip to content

Commit

Permalink
Address clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hsivonen committed Dec 18, 2024
1 parent f70a4a2 commit b199fe5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/normalizer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1482,8 +1482,7 @@ macro_rules! normalizer_methods {
if up_to == text.len() {
return Cow::Borrowed(text);
}
let mut ret = Vec::new();
ret.reserve(text.len());
let mut ret = Vec::with_capacity(text.len());
let (head, tail) = text.split_at(up_to);
ret.extend_from_slice(head);
let _ = self.normalize_utf16_to(tail, &mut ret);
Expand Down

0 comments on commit b199fe5

Please sign in to comment.