]> Repositorios git - scryer-prolog.git/commitdiff
correct for use in earlier releases of rust.
authorMark Thom <[email protected]>
Thu, 17 May 2018 19:14:38 +0000 (13:14 -0600)
committerMark Thom <[email protected]>
Thu, 17 May 2018 19:14:38 +0000 (13:14 -0600)
src/prolog/ast.rs

index 721ec05d706a37201896dc22eb2aa1ee27cbdeba..5fac17a55c6b58bd429c0bd411d1dc9c636d3459 100644 (file)
@@ -1504,8 +1504,8 @@ impl PartialOrd<Ref> for Addr {
                 },
             &Addr::HeapCell(h) =>
                 match r {
-                    Ref::StackCell(..) => Some(Ordering::Less),
-                    Ref::HeapCell(h1) => h.partial_cmp(h1)
+                    &Ref::StackCell(..) => Some(Ordering::Less),
+                    &Ref::HeapCell(h1) => h.partial_cmp(&h1)
                 },
             _ => None
         }