mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Rollup merge of #127055 - shepmaster:hash-finish-must-use, r=dtolnay
Mark Hasher::finish as #[must_use]
This commit is contained in:
commit
afde8485df
@ -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`.
|
||||
|
Loading…
Reference in New Issue
Block a user