Skip to content

Commit

Permalink
Use .cloned()
Browse files Browse the repository at this point in the history
  • Loading branch information
breard-r committed Dec 13, 2024
1 parent 2ed1ebe commit 9d0c43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl FileList {

pub fn excluded_files(&self) -> Vec<NonHashedFile> {
match self {
Self::NonHashed(lst) => lst.excluded_files.iter().map(|e| e.clone()).collect(),
Self::NonHashed(lst) => lst.excluded_files.iter().cloned().collect(),
Self::Hashed(_) | Self::None => Vec::new(),
}
}
Expand Down

0 comments on commit 9d0c43f

Please sign in to comment.