Skip to content

Commit 3d49b6f

Browse files
authored
fix clippy lint with hmac_openssl feature (#1507)
1 parent 6d03297 commit 3d49b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/core/src/hmac.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub fn hmac_sha256(data: &str, key: &Secret) -> crate::Result<String> {
2929
let pkey = PKey::hmac(&dkey)?;
3030
let mut signer = Signer::new(MessageDigest::sha256(), &pkey)?;
3131
signer.update(data.as_bytes())?;
32-
Ok(signer.sign_to_vec()?)
32+
signer.sign_to_vec()
3333
}()
3434
.with_context(ErrorKind::DataConversion, || {
3535
"failed to create hmac from key"

0 commit comments

Comments
 (0)