fixed cargo clippy errors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user