mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
clippy
This commit is contained in:
parent
75e996c445
commit
11cccde050
6 changed files with 22 additions and 22 deletions
|
@ -27,10 +27,11 @@ impl<T> RocSet<T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<T: Hash> RocSet<T> {
|
||||
#[allow(unused)]
|
||||
pub fn from_iter<I: Iterator<Item = T>>(src: I) -> Self {
|
||||
Self(RocDict::from_iter(src.map(|elem| (elem, ()))))
|
||||
impl<T: Hash> FromIterator<T> for RocSet<T> {
|
||||
fn from_iter<I: IntoIterator<Item = T>>(into_iter: I) -> Self {
|
||||
Self(RocDict::from_iter(
|
||||
into_iter.into_iter().map(|elem| (elem, ())),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue