Skip to content

Commit

Permalink
Merge pull request #190 from p-l-/fix-warning
Browse files Browse the repository at this point in the history
Remove unneeded .clone() call
  • Loading branch information
Frky authored Nov 3, 2023
2 parents 3ceff8e + b642c34 commit 9e23e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smack/smack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub struct Smack {
}

fn make_copy_of_pattern(pattern: &[u8], is_nocase: bool) -> Vec<u8> {
let mut p = pattern.clone().to_vec();
let mut p = pattern.to_vec();
for i in 0..p.len() {
if is_nocase {
p[i] = p[i].to_ascii_lowercase();
Expand Down

0 comments on commit 9e23e34

Please sign in to comment.