From 1e9aa887f71778ffbb3eaec6a6b8bc85ba51ed21 Mon Sep 17 00:00:00 2001 From: Bauke Date: Wed, 21 Sep 2022 23:50:43 +0200 Subject: [PATCH] Fix Overlord Clippy's issues. --- source/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/main.rs b/source/main.rs index de2e883..9745b2e 100644 --- a/source/main.rs +++ b/source/main.rs @@ -55,7 +55,7 @@ pub struct Feed { } /// An enum for [`Feed`]s for which option was used in the CLI. -#[derive(Debug, PartialEq)] +#[derive(Debug, Eq, PartialEq)] pub enum FeedOption { /// `-a, --appid ` was used. AppID, @@ -133,8 +133,10 @@ fn main() -> Result<()> { feeds_to_output = potential_feeds; } - let mut opml_document = opml::OPML::default(); - opml_document.head = None; + let mut opml_document = opml::OPML { + head: None, + ..Default::default() + }; for feed in feeds_to_output { if args.opml {