From c5386c3e884384610c8948aed39e64b2d248a4e3 Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Thu, 17 May 2018 13:14:38 -0600 Subject: [PATCH] correct for use in earlier releases of rust. --- src/prolog/ast.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.54.0