Mark Hasher::finish as #[must_use]

This commit is contained in:
Jake Goulding 2024-06-27 14:16:27 -04:00
parent 249595384b
commit 448dd30ed4

View file

@ -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`.