clean up 81
This commit is contained in:
@@ -137,25 +137,6 @@ struct Node {
|
||||
previous: Option<Coordinate>,
|
||||
}
|
||||
|
||||
impl Node {
|
||||
fn smaller_distance(&self, other: &Self) -> Option<std::cmp::Ordering> {
|
||||
match self.distance {
|
||||
Some(v1) => match other.distance {
|
||||
Some(v2) => v1.partial_cmp(&v2),
|
||||
None => Some(std::cmp::Ordering::Less),
|
||||
},
|
||||
None => match other.distance {
|
||||
Some(_) => Some(std::cmp::Ordering::Greater),
|
||||
None => None,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// fn smaller_value(&self, other: &Self) -> Option<std::cmp::Ordering> {
|
||||
// self.value.partial_cmp(&other.value)
|
||||
// }
|
||||
}
|
||||
|
||||
impl From<u32> for Node {
|
||||
fn from(value: u32) -> Self {
|
||||
Node {
|
||||
|
||||
Reference in New Issue
Block a user