From 2ee0fad68477db3dab8da4c6ad740319d4f6f5d3 Mon Sep 17 00:00:00 2001 From: Techassi Date: Tue, 9 Jan 2024 20:22:36 +0100 Subject: [PATCH] Fix clippy error --- lychee-bin/src/options.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lychee-bin/src/options.rs b/lychee-bin/src/options.rs index 61a128005a..f4fc71204b 100644 --- a/lychee-bin/src/options.rs +++ b/lychee-bin/src/options.rs @@ -477,8 +477,10 @@ mod tests { #[test] fn test_accept_status_codes() { - let mut toml = Config::default(); - toml.accept = AcceptSelector::from_str("200..=204, 429, 500").unwrap(); + let toml = Config { + accept: AcceptSelector::from_str("200..=204, 429, 500").unwrap(), + ..Default::default() + }; let mut cli = Config::default(); cli.merge(toml);