From 8646b2dfceb45d8a197cd9c4c3ed13444c6cadcc Mon Sep 17 00:00:00 2001 From: Kenneth Loeffler Date: Fri, 30 Jun 2023 11:06:12 -0700 Subject: [PATCH] Fix snapshot middleware clippy lints (#686) The seventh in a series of PRs that aim to get CI passing --- src/snapshot_middleware/dir.rs | 2 +- src/snapshot_middleware/util.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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())) } }