Skip to content

Commit

Permalink
Rollup merge of rust-lang#127055 - shepmaster:hash-finish-must-use, r…
Browse files Browse the repository at this point in the history
…=dtolnay

Mark Hasher::finish as #[must_use]
  • Loading branch information
matthiaskrgr authored Jun 28, 2024
2 parents 8c3c7dc + fdfe014 commit 663f3d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 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 663f3d5

Please sign in to comment.