Skip to content

Commit 425e15e

Browse files
committed
must_use on the lattice operations
1 parent 7693b06 commit 425e15e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lattice.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ pub trait Lattice : PartialOrder {
2727
/// assert_eq!(join, Product::new(4, 7));
2828
/// # }
2929
/// ```
30+
#[must_use]
3031
fn join(&self, other: &Self) -> Self;
3132

3233
/// Updates `self` to the smallest element greater than or equal to both arguments.
@@ -67,6 +68,7 @@ pub trait Lattice : PartialOrder {
6768
/// assert_eq!(meet, Product::new(3, 6));
6869
/// # }
6970
/// ```
71+
#[must_use]
7072
fn meet(&self, other: &Self) -> Self;
7173

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

0 commit comments

Comments
 (0)