Fix snapshot middleware clippy lints (#686)

The seventh in a series of PRs that aim to get CI passing
This commit is contained in:
Kenneth Loeffler
2023-06-30 11:06:12 -07:00
committed by GitHub
parent a2f68c2e3c
commit 8646b2dfce
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ pub fn snapshot_dir_no_meta(
let relevant_paths = vec![
path.to_path_buf(),
meta_path.clone(),
meta_path,
// TODO: We shouldn't need to know about Lua existing in this
// middleware. Should we figure out a way for that function to add
// relevant paths to this middleware?

View File

@@ -37,7 +37,7 @@ where
.and_then(|name| name.to_str())
.with_context(|| format!("Path did not have a file name: {}", path.display()))?;
match_trailing(&file_name, suffix)
match_trailing(file_name, suffix)
.with_context(|| format!("Path did not end in {}: {}", suffix, path.display()))
}
}