From 9d33cda130421c7c391c2fb9d89c55e8d5752c1f Mon Sep 17 00:00:00 2001 From: Moritz Hoffmann Date: Fri, 2 Jul 2021 17:00:43 +0200 Subject: [PATCH] Fix compiler warning on Rust 1.53 (#329) From the warning: anonymous parameters are deprecated and will be removed in the next edition. this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition! for more information, see issue #41686 Signed-off-by: Moritz Hoffmann --- src/lattice.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lattice.rs b/src/lattice.rs index 25370db159..69428d2f2c 100644 --- a/src/lattice.rs +++ b/src/lattice.rs @@ -29,7 +29,7 @@ pub trait Lattice : PartialOrder { /// assert_eq!(join, Product::new(4, 7)); /// # } /// ``` - fn join(&self, &Self) -> Self; + fn join(&self, other: &Self) -> Self; /// Updates `self` to the smallest element greater than or equal to both arguments. /// @@ -73,7 +73,7 @@ pub trait Lattice : PartialOrder { /// assert_eq!(meet, Product::new(3, 6)); /// # } /// ``` - fn meet(&self, &Self) -> Self; + fn meet(&self, other: &Self) -> Self; /// Updates `self` to the largest element less than or equal to both arguments. ///