Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fdfe014

Browse files
committedJun 27, 2024
Mark Hasher::finish as #[must_use]
1 parent 6c38c60 commit fdfe014

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎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)
Failed to load comments.