Skip to content

Commit

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

Mark Hasher::finish as #[must_use]
  • Loading branch information
rust-timer authored Jun 29, 2024
2 parents 9ed2ab3 + 448dd30 commit fba1e63
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 fba1e63

Please sign in to comment.