Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: loosen BoundedVec::collect_from bounds
Fintan Halpenny committed 2 years ago
commit 63ffdcd46785a5e426dcccb9c26e9f6cba84527e
parent ac849f1fd5ec61051d77bd21b371f082fa4f48c6
1 file changed +1 -1
modified radicle-node/src/bounded.rs
@@ -33,7 +33,7 @@ impl<T, const N: usize> BoundedVec<T, N> {
    /// assert_eq!(bounded.len(), 3);
    /// assert_eq!(iter.count(), 1);
    /// ```
-
    pub fn collect_from<I: Iterator<Item = T>>(iter: &mut I) -> Self {
+
    pub fn collect_from<I: IntoIterator<Item = T>>(iter: I) -> Self {
        BoundedVec {
            v: iter.into_iter().take(N).collect(),
        }