diff --git a/radicle-node/src/bounded.rs b/radicle-node/src/bounded.rs index aea59730..15e0d47a 100644 --- a/radicle-node/src/bounded.rs +++ b/radicle-node/src/bounded.rs @@ -33,7 +33,7 @@ impl BoundedVec { /// assert_eq!(bounded.len(), 3); /// assert_eq!(iter.count(), 1); /// ``` - pub fn collect_from>(iter: &mut I) -> Self { + pub fn collect_from>(iter: I) -> Self { BoundedVec { v: iter.into_iter().take(N).collect(), }