Rollup merge of #127055 - shepmaster:hash-finish-must-use, r=dtolnay

Mark Hasher::finish as #[must_use]
This commit is contained in:
Matthias Krüger 2024-06-28 22:04:18 +02:00 committed by GitHub
commit afde8485df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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