about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJake Goulding <jake.goulding@gmail.com>2024-06-27 14:16:27 -0400
committerJake Goulding <jake.goulding@gmail.com>2024-06-27 14:16:27 -0400
commit448dd30ed4e28249895db1a231b336f3df573f68 (patch)
treeafe6121a916ea47063b87786c356af5c95639be9
parent249595384b4589c71a00d622c4253f62c7f5ddbd (diff)
downloadrust-448dd30ed4e28249895db1a231b336f3df573f68.tar.gz
rust-448dd30ed4e28249895db1a231b336f3df573f68.zip
Mark `Hasher::finish` as #[must_use]
-rw-r--r--library/core/src/hash/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/hash/mod.rs b/library/core/src/hash/mod.rs
index 1c93a7b28fd..da734466263 100644
--- a/library/core/src/hash/mod.rs
+++ b/library/core/src/hash/mod.rs
@@ -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`.