From 6449b5436be01b728cb356b9eab52a1a1d2e1f26 Mon Sep 17 00:00:00 2001 From: Sean Young Date: Sat, 28 Oct 2023 16:36:23 +0100 Subject: [PATCH] Fix clippy warnings Signed-off-by: Sean Young --- tests/lirc_compare/src/main.rs | 2 +- tests/lircd_conf_encode.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lirc_compare/src/main.rs b/tests/lirc_compare/src/main.rs index b29d67aa..c1b426ef 100644 --- a/tests/lirc_compare/src/main.rs +++ b/tests/lirc_compare/src/main.rs @@ -18,7 +18,7 @@ fn main() { let lircd_conf = LircdConf::parse(&source).unwrap(); - let our_conf = parse(path).unwrap_or(Vec::new()); + let our_conf = parse(path).unwrap_or_default(); let mut our_conf = our_conf.iter(); for lircd_remote in lircd_conf.iter() { diff --git a/tests/lircd_conf_encode.rs b/tests/lircd_conf_encode.rs index 3d718252..71632ead 100644 --- a/tests/lircd_conf_encode.rs +++ b/tests/lircd_conf_encode.rs @@ -32,7 +32,7 @@ fn lircd_encode(path: &Path) { let lircd_conf = LircdConf::parse(&source).unwrap(); - let our_conf = parse(path).unwrap_or(Vec::new()); + let our_conf = parse(path).unwrap_or_default(); let mut our_conf = our_conf.iter(); for lircd_remote in lircd_conf.iter() {