diff --git a/keyfork-derive-path-data/src/lib.rs b/keyfork-derive-path-data/src/lib.rs index 104069e..b16d7d2 100644 --- a/keyfork-derive-path-data/src/lib.rs +++ b/keyfork-derive-path-data/src/lib.rs @@ -1,3 +1,5 @@ +#![allow(clippy::unreadable_literal)] + use keyfork_derive_util::{DerivationIndex, DerivationPath}; pub static OPENPGP: DerivationIndex = DerivationIndex::new_unchecked(7366512, true); @@ -19,7 +21,7 @@ impl std::fmt::Display for Target { /// Determine the closest [`Target`] for the given path. This method is intended to be used by /// `keyforkd` to provide an optional textual prompt to what a client is attempting to derive. pub fn guess_target(path: &DerivationPath) -> Option { - Some(match Vec::from_iter(path.iter())[..] { + Some(match path.iter().collect::>()[..] { [t, index] if t == &OPENPGP => Target::OpenPGP(index.clone()), _ => return None, })