]> git.lizzy.rs Git - rust.git/commitdiff
Fix impl PartialOrd for InternedString
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Sat, 5 May 2018 10:30:14 +0000 (12:30 +0200)
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Sat, 12 May 2018 23:28:20 +0000 (01:28 +0200)
src/libsyntax_pos/symbol.rs

index b84ff5697a4c8e3928244d0cf4e5487589cbb709..2258ed12779e4ce7792a195d9cfaa234db812bac 100644 (file)
@@ -527,7 +527,7 @@ fn partial_cmp(&self, other: &InternedString) -> Option<Ordering> {
         if self.symbol == other.symbol {
             return Some(Ordering::Equal);
         }
-        self.with(|self_str| other.with(|other_str| self_str.partial_cmp(&other_str)))
+        self.with(|self_str| other.with(|other_str| self_str.partial_cmp(other_str)))
     }
 }