Skip to content

Commit

Permalink
Mark Hasher::finish as #[must_use]
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Jun 27, 2024
1 parent 2495953 commit 448dd30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/hash/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ pub trait Hasher {
///
/// [`write`]: Hasher::write
#[stable(feature = "rust1", since = "1.0.0")]
#[must_use]
fn finish(&self) -> u64;

/// Writes some data into this `Hasher`.
Expand Down

0 comments on commit 448dd30

Please sign in to comment.