Hitting an infinite loop on compare string and int.
This commit is contained in:
@@ -165,6 +165,7 @@ impl CompareContextElement for String {
|
||||
}
|
||||
|
||||
fn partial_compare(&self, other: &dyn ContextElement) -> Option<Ordering> {
|
||||
println!("partial_compare String {:?} | {:?}", self, other);
|
||||
// If its a string then compare them directly, otherwise defer
|
||||
// to the other type's implementation of CompareContextElement
|
||||
// since the end user could add any type.
|
||||
@@ -214,6 +215,7 @@ impl CompareContextElement for u64 {
|
||||
}
|
||||
|
||||
fn partial_compare(&self, other: &dyn ContextElement) -> Option<Ordering> {
|
||||
println!("partial_compare u64 {:?} | {:?}", self, other);
|
||||
// If its a u64 then compare them directly, otherwise defer
|
||||
// to the other type's implementation of CompareContextElement
|
||||
// since the end user could add any type.
|
||||
|
||||
Reference in New Issue
Block a user