fixed cargo clippy errors

This commit is contained in:
DustInDark
2022-06-07 19:04:42 +09:00
parent ca8b817b7a
commit a2de1314f9
6 changed files with 22 additions and 18 deletions

View File

@@ -276,7 +276,7 @@ fn create_recordinfos(record: &Value) -> String {
let summary: Vec<String> = output
.iter()
.map(|(key, value)| {
return format!("{}:{}", key, value);
format!("{}:{}", key, value)
})
.collect();
@@ -314,7 +314,7 @@ fn _collect_recordinfo<'a>(
continue;
}
// Event.Systemは出力しない
if key.eq("System") && keys.get(0).unwrap_or(&"").eq(&"Event") {
if key.eq("System") && keys.first().unwrap_or(&"").eq(&"Event") {
continue;
}