Add / remove from group + clean up code.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use hashbrown::HashSet;
|
||||
use std::iter::FromIterator;
|
||||
|
||||
pub fn vec_to_set<T: Clone + Eq + std::hash::Hash>(data: &Vec<T>) -> HashSet<T> {
|
||||
pub fn vec_to_set<T: Clone + Eq + std::hash::Hash>(data: &[T]) -> HashSet<T> {
|
||||
HashSet::from_iter(data.iter().cloned())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user