diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-03-21 07:39:07 +0100 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-03-21 07:39:07 +0100 |
commit | de5c7ffcdc049441314e0f7c65b4bd9bbee3a2a3 (patch) | |
tree | fcc7ed85ca1e615769709f88824a6455ed0ccd84 | |
parent | 84d8e706728d0e3f62c074ed55a732fc1c224ca7 (diff) |
openerhelp-opener
-rw-r--r-- | src/opener.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/opener.rs b/src/opener.rs index cc6967d..dcf012d 100644 --- a/src/opener.rs +++ b/src/opener.rs @@ -6,6 +6,7 @@ use std::process::{Command, Stdio}; use anyhow::{anyhow, Context, Result}; use log::info; use serde_yaml; +use strum::IntoEnumIterator; use strum_macros::{Display, EnumIter, EnumString}; use crate::constant_strings_paths::{ @@ -163,7 +164,8 @@ impl OpenerAssociation { .map(|(k, v)| (k.to_string(), v.to_string())) .collect(); - for s in EnumIter::enum_iter!(ExtensionKind) { + for s in ExtensionKind::iter() { + let s = s.to_string(); if !associations.contains_key(&s) { associations.insert(s, "".to_owned()); } |