mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 10:28:27 +00:00
Remove unnecessary trait bounds
This commit is contained in:
parent
3663be0ffc
commit
a5f319b82e
@ -30,7 +30,7 @@ impl<T> ObjectSet<T> {
|
||||
/// Panics, if the iterator contains duplicate `Handle`s.
|
||||
pub fn new(handles: impl IntoIterator<Item = Handle<T>>) -> Self
|
||||
where
|
||||
T: Debug + Ord,
|
||||
T: Debug,
|
||||
{
|
||||
let mut added = BTreeSet::new();
|
||||
let mut inner = Vec::new();
|
||||
@ -156,7 +156,7 @@ impl<T> ObjectSet<T> {
|
||||
replacements: impl IntoIterator<Item = impl Into<Handle<T>>>,
|
||||
) -> Option<Self>
|
||||
where
|
||||
T: Debug + Ord,
|
||||
T: Debug,
|
||||
{
|
||||
let mut iter = self.iter().cloned().peekable();
|
||||
|
||||
@ -201,7 +201,7 @@ impl<T> Hash for ObjectSet<T> {
|
||||
|
||||
impl<O> FromIterator<Handle<O>> for ObjectSet<O>
|
||||
where
|
||||
O: Debug + Ord,
|
||||
O: Debug,
|
||||
{
|
||||
fn from_iter<T: IntoIterator<Item = Handle<O>>>(handles: T) -> Self {
|
||||
Self::new(handles)
|
||||
|
Loading…
Reference in New Issue
Block a user