From fdfe0148965d5be84a910349e40a9e4138d71f53 Mon Sep 17 00:00:00 2001 From: Jake Goulding Date: Thu, 27 Jun 2024 14:16:27 -0400 Subject: [PATCH] Mark `Hasher::finish` as #[must_use] --- core/src/hash/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/hash/mod.rs b/core/src/hash/mod.rs index 1c93a7b28fd35..da734466263ab 100644 --- a/core/src/hash/mod.rs +++ b/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`.