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

@@ -36,7 +36,7 @@ impl SnapshotMiddleware for SnapshotJsonModel {
serde_json::from_slice(&entry.contents(vfs)?).expect("TODO: Handle serde_json errors");
if let Some(json_name) = &instance.name {
if json_name != &instance_name {
if json_name != instance_name {
log::warn!(
"Name from JSON model did not match its file name: {}",
entry.path().display()