diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 1aacfac..91c086b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -192,7 +192,7 @@ fn main() -> anyhow::Result<()> { Ok(()) } Cmd::Unsubscribe { pkgbase } => { - db::set_subscription_state(&ctx.db.writer, &pkgbase, subscription_state::REMOVED)?; + db::set_subscription_state(&ctx.db.writer, &pkgbase, SubscriptionState::Removed)?; println!("unsubscribed {pkgbase}"); Ok(()) } @@ -201,7 +201,7 @@ fn main() -> anyhow::Result<()> { Some(n) => vec![n], None => db::list_subscriptions(&ctx.db)? .into_iter() - .filter(|s| s.state == subscription_state::ACTIVE) + .filter(|s| s.state == SubscriptionState::Active) .map(|s| s.pkgbase) .collect(), }; |
