summaryrefslogtreecommitdiffstats
path: root/src/file_sum
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2021-02-14 08:47:33 +0100
committerCanop <cano.petrole@gmail.com>2021-02-14 08:47:33 +0100
commite9cb412e05511d662a856f724451791bc92cc065 (patch)
tree4d9ba2997efa80bb19419fef052836ec1d9ce137 /src/file_sum
parent0280a300e1b0bb992d50aa0eaecc17134dece6da (diff)
fix broken selection bg in text preview when line numbers are shown
Diffstat (limited to 'src/file_sum')
-rw-r--r--src/file_sum/sum_computation.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_sum/sum_computation.rs b/src/file_sum/sum_computation.rs
index d3013f0..c623fff 100644
--- a/src/file_sum/sum_computation.rs
+++ b/src/file_sum/sum_computation.rs
@@ -88,7 +88,7 @@ pub fn compute_dir_sum(
let special_paths: Vec<SpecialPath> = con.special_paths.iter()
.filter(|sp| sp.can_have_matches_in(path))
- .map(|sp| sp.clone())
+ .cloned()
.collect();
// the first level is managed a little differently: we look at the cache