diff options
| author | Jake Goulding <jake.goulding@gmail.com> | 2024-06-27 14:16:27 -0400 |
|---|---|---|
| committer | Jake Goulding <jake.goulding@gmail.com> | 2024-06-27 14:16:27 -0400 |
| commit | 448dd30ed4e28249895db1a231b336f3df573f68 (patch) | |
| tree | afe6121a916ea47063b87786c356af5c95639be9 | |
| parent | 249595384b4589c71a00d622c4253f62c7f5ddbd (diff) | |
| download | rust-448dd30ed4e28249895db1a231b336f3df573f68.tar.gz rust-448dd30ed4e28249895db1a231b336f3df573f68.zip | |
Mark `Hasher::finish` as #[must_use]
| -rw-r--r-- | library/core/src/hash/mod.rs | 1 |
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`. |
