From: Mark Thom Date: Thu, 17 May 2018 19:14:38 +0000 (-0600) Subject: correct for use in earlier releases of rust. X-Git-Tag: v0.8.110~461 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=c5386c3e884384610c8948aed39e64b2d248a4e3;p=scryer-prolog.git correct for use in earlier releases of rust. --- diff --git a/src/prolog/ast.rs b/src/prolog/ast.rs index 721ec05d..5fac17a5 100644 --- a/src/prolog/ast.rs +++ b/src/prolog/ast.rs @@ -1504,8 +1504,8 @@ impl PartialOrd 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 }