@ 261027.5

260709.13 · e7b0f89e81811b295446404f02ca133fe8434054

lint: use `cloned()` or `copied()` when we can

Ref https://rust-lang.github.io/rust-clippy/master/index.html#map_clone

Closes #3230

reading declarations

Changes to crates/matcher/tests/. All files

crates/matcher/tests/util.rs

@@ -54,7 +54,7 @@ impl Matcher for RegexMatcher {     }      fn capture_index(&self, name: &str) -> Option<usize> {-        self.names.get(name).map(|i| *i)+        self.names.get(name).copied()     }      // We purposely don't implement any other methods, so that we test the