mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 22:25:26 +00:00
Fix snapshot middleware clippy lints (#686)
The seventh in a series of PRs that aim to get CI passing
This commit is contained in:
@@ -77,7 +77,7 @@ pub fn snapshot_dir_no_meta(
|
|||||||
|
|
||||||
let relevant_paths = vec![
|
let relevant_paths = vec![
|
||||||
path.to_path_buf(),
|
path.to_path_buf(),
|
||||||
meta_path.clone(),
|
meta_path,
|
||||||
// TODO: We shouldn't need to know about Lua existing in this
|
// TODO: We shouldn't need to know about Lua existing in this
|
||||||
// middleware. Should we figure out a way for that function to add
|
// middleware. Should we figure out a way for that function to add
|
||||||
// relevant paths to this middleware?
|
// relevant paths to this middleware?
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ where
|
|||||||
.and_then(|name| name.to_str())
|
.and_then(|name| name.to_str())
|
||||||
.with_context(|| format!("Path did not have a file name: {}", path.display()))?;
|
.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()))
|
.with_context(|| format!("Path did not end in {}: {}", suffix, path.display()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user