From ce2b34851d38dc28d6ffbbb4fe563e226acb7445 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 16 Jan 2026 17:14:48 +0100 Subject: finish refactoring import crate --- common/object/src/lib.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'common/object') diff --git a/common/object/src/lib.rs b/common/object/src/lib.rs index 290cf91..5637dd6 100644 --- a/common/object/src/lib.rs +++ b/common/object/src/lib.rs @@ -17,7 +17,11 @@ pub use path::*; pub use registry::*; pub use value::*; -use std::{collections::HashSet, hash::Hash, marker::PhantomData}; +use std::{ + collections::{BTreeSet, HashSet}, + hash::Hash, + marker::PhantomData, +}; #[repr(transparent)] #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] @@ -150,7 +154,7 @@ impl<'a> Object<'a> { } } #[must_use] - pub fn extend + Hash + Eq + PartialEq>( + pub fn extend + Eq + Ord>( &self, tag: TypedTag, values: impl IntoIterator, @@ -160,7 +164,7 @@ impl<'a> Object<'a> { &self .iter(tag) .chain(values) - .collect::>() + .collect::>() .into_iter() .collect::>(), ) -- cgit v1.3