Skip to content

Commit

Permalink
Fix compiler warning on Rust 1.53
Browse files Browse the repository at this point in the history
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 <antiguru@gmail.com>
  • Loading branch information
antiguru committed Jul 2, 2021
1 parent 0726c04 commit 997b69e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lattice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down Expand Up @@ -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.
///
Expand Down

0 comments on commit 997b69e

Please sign in to comment.