diff --git a/derive/src/path.rs b/derive/src/path.rs index 865aeaa..5e85993 100644 --- a/derive/src/path.rs +++ b/derive/src/path.rs @@ -45,7 +45,7 @@ pub struct DerivationSeg(Confined, 1, 8>); impl From<&'static [I]> for DerivationSeg { fn from(indexes: &'static [I]) -> Self { - Self(Confined::from_iter_unsafe(indexes.into_iter().copied())) + Self(Confined::from_iter_unsafe(indexes.iter().copied())) } }