Skip to content

Commit 5ae53cf

Browse files
committed
move
1 parent c3eea6d commit 5ae53cf

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

libs/zarts/src/lib.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@ use std::{
4545
///
4646
pub struct SortedSeq<T>(Vec<T>);
4747

48-
impl<T> FromIterator<T> for SortedSeq<T>
49-
where
50-
T: Ord,
51-
{
52-
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self {
53-
Self::new(iter.into_iter().collect())
54-
}
55-
}
56-
5748
impl<T> SortedSeq<T>
5849
where
5950
T: Ord,
@@ -86,6 +77,15 @@ where
8677
}
8778
}
8879

80+
impl<T> FromIterator<T> for SortedSeq<T>
81+
where
82+
T: Ord,
83+
{
84+
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self {
85+
Self::new(iter.into_iter().collect())
86+
}
87+
}
88+
8989
impl<T> Index<usize> for SortedSeq<T> {
9090
type Output = T;
9191

0 commit comments

Comments
 (0)