Skip to content

Commit 0526b8a

Browse files
committed
universal-hash: enable and fix workspace-level lints
Note: lint config was added in #2270
1 parent 931a70d commit 0526b8a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

universal-hash/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ description = "Traits which describe the functionality of universal hash functio
1616
common = { version = "0.2", package = "crypto-common" }
1717
subtle = { version = "2.4", default-features = false }
1818

19+
[lints]
20+
workspace = true
21+
1922
[package.metadata.docs.rs]
2023
all-features = true

universal-hash/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ pub trait UniversalHash: BlockSizeUser + Sized {
129129
///
130130
/// This is useful when constructing Message Authentication Codes (MACs)
131131
/// from universal hash functions.
132+
///
133+
/// # Errors
134+
/// If the `expected` value does not match the computed one.
132135
#[inline]
133136
fn verify(self, expected: &Block<Self>) -> Result<(), Error> {
134137
if self.finalize().ct_eq(expected).into() {

0 commit comments

Comments
 (0)