Skip to content

Commit

Permalink
Rollup merge of #127055 - shepmaster:hash-finish-must-use, r=dtolnay
Browse files Browse the repository at this point in the history
Mark Hasher::finish as #[must_use]
  • Loading branch information
matthiaskrgr authored Jun 28, 2024
2 parents 93ca5ff + 448dd30 commit afde848
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 afde848

Please sign in to comment.