From 0eb443976f4a47ff5c2cb3bf0e2269562b2a2219 Mon Sep 17 00:00:00 2001 From: Zykino Date: Mon, 16 Jan 2023 18:42:46 +0100 Subject: [PATCH] =?UTF-8?q?Apply=20clippy=E2=80=99s=20advices?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/command.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command.rs b/src/command.rs index 3acc450..e828cea 100644 --- a/src/command.rs +++ b/src/command.rs @@ -121,7 +121,7 @@ impl Updater { .collect(); // TODO: - if errors.len() == 0 { + if errors.is_empty() { Ok(()) } else { Err(Error::new( @@ -158,7 +158,7 @@ impl Updater { impl System { pub fn fetch(&self, opt: &Opt) -> Result<()> { if let Some(fetch) = &self.fetch { - fetch.clone().prepare(opt).execute(&opt)?; + fetch.clone().prepare(opt).execute(opt)?; } Ok(()) }