Skip to content

Commit

Permalink
vp: Remove workaround for rust-lang/rust#72582
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed Feb 24, 2021
1 parent b1ac058 commit 87a9da4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/vp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,7 @@ impl<T: Proximity> VpNode<T> {
}

/// Push a new item into this subtree.
fn push(&mut self, item: T)
where
// https://github.com/rust-lang/rust/issues/72582
T::Distance: PartialOrd + PartialOrd<DistanceValue<T>>,
{
fn push(&mut self, item: T) {
match (&mut self.inside, &mut self.outside) {
(None, None) => {
self.outside = Some(Box::new(Self::new(item)));
Expand Down

0 comments on commit 87a9da4

Please sign in to comment.