diff --git a/src/snapshot_middleware/dir.rs b/src/snapshot_middleware/dir.rs index ba63301c..092641e7 100644 --- a/src/snapshot_middleware/dir.rs +++ b/src/snapshot_middleware/dir.rs @@ -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? diff --git a/src/snapshot_middleware/util.rs b/src/snapshot_middleware/util.rs index 517cd606..16648eae 100644 --- a/src/snapshot_middleware/util.rs +++ b/src/snapshot_middleware/util.rs @@ -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())) } }