From e81cf6a714d0e1a5179e37e07badb3d964db3e8d Mon Sep 17 00:00:00 2001 From: James McMurray Date: Thu, 11 Apr 2024 20:20:52 +0200 Subject: [PATCH] Filter out non-provider Providers from dialoguer prompt --- src/sync.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sync.rs b/src/sync.rs index 5ff1288..6e4138e 100644 --- a/src/sync.rs +++ b/src/sync.rs @@ -11,7 +11,9 @@ use crate::args::WrappedArg; pub fn sync_menu(uiclient: &dyn UiClient) -> anyhow::Result<()> { let variants = WrappedArg::::value_variants() .iter() - .filter(|x| x.to_variant() != VpnProvider::Custom) + .filter(|x| { + ![VpnProvider::Custom, VpnProvider::None, VpnProvider::Warp].contains(&x.to_variant()) + }) .map(|x| x.to_variant().to_string()) .collect::>();