Skip to content

Commit fba1e63

Browse files
authored
Unrolled build for rust-lang#127055
Rollup merge of rust-lang#127055 - shepmaster:hash-finish-must-use, r=dtolnay Mark Hasher::finish as #[must_use]
2 parents 9ed2ab3 + 448dd30 commit fba1e63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/hash/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ pub trait Hasher {
334334
///
335335
/// [`write`]: Hasher::write
336336
#[stable(feature = "rust1", since = "1.0.0")]
337+
#[must_use]
337338
fn finish(&self) -> u64;
338339

339340
/// Writes some data into this `Hasher`.

0 commit comments

Comments
 (0)