Skip to content

Commit 997b69e

Browse files
committed
Fix compiler warning on Rust 1.53
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 <rust-lang/rust#41686> Signed-off-by: Moritz Hoffmann <[email protected]>
1 parent 0726c04 commit 997b69e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lattice.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub trait Lattice : PartialOrder {
2929
/// assert_eq!(join, Product::new(4, 7));
3030
/// # }
3131
/// ```
32-
fn join(&self, &Self) -> Self;
32+
fn join(&self, other: &Self) -> Self;
3333

3434
/// Updates `self` to the smallest element greater than or equal to both arguments.
3535
///
@@ -73,7 +73,7 @@ pub trait Lattice : PartialOrder {
7373
/// assert_eq!(meet, Product::new(3, 6));
7474
/// # }
7575
/// ```
76-
fn meet(&self, &Self) -> Self;
76+
fn meet(&self, other: &Self) -> Self;
7777

7878
/// Updates `self` to the largest element less than or equal to both arguments.
7979
///

0 commit comments

Comments
 (0)