about summary refs log tree commit diff stats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
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 <https://www.gnu.org/licenses/gpl-3.0.txt>.
 
-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