From 91a6b845ba23c9a95dc784dada43db5583ddb694 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 6 Jan 2024 23:19:47 -0500 Subject: [PATCH] keyfork-derive-path-data: make clippy happy --- keyfork-derive-path-data/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, })