From a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 25 Aug 2024 17:30:02 +0200 Subject: refactor(treewide): Conform to `cargo clippy` --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 304b99f..c5115ac 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,7 @@ // You should have received a copy of the License along with this program. // If not, see . -use std::{collections::HashMap, fs, sync::Arc, u8}; +use std::{collections::HashMap, fs, sync::Arc}; use anyhow::{bail, Context, Result}; use app::App; @@ -148,7 +148,7 @@ async fn main() -> Result<()> { let all_subs = get_subscriptions(&app).await?; for sub in &subscriptions { - if let None = all_subs.0.get(sub) { + if !all_subs.0.contains_key(sub) { bail!( "Your specified subscription to update '{}' is not a subscription!", sub -- cgit 1.4.1