Fix clippy warnings

This commit is contained in:
Lucien Greathouse
2019-10-17 18:22:53 -07:00
parent ec614e1912
commit 44c94da2d8
17 changed files with 42 additions and 33 deletions

View File

@@ -4,6 +4,9 @@ mod fetcher;
mod noop_fetcher;
mod real_fetcher;
mod snapshot;
// I don't think module inception is a real problem?
#[allow(clippy::module_inception)]
mod vfs;
pub use error::*;

View File

@@ -220,6 +220,6 @@ impl VfsFetcher for RealFetcher {
fn watched_paths(&self) -> Vec<PathBuf> {
let watched_paths = self.watched_paths.lock().unwrap();
watched_paths.iter().map(|v| v.clone()).collect()
watched_paths.iter().cloned().collect()
}
}