Skip to content

Commit dc4854f

Browse files
committed
Improve clarity of return type
1 parent 1b7b43b commit dc4854f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/keystore/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl PrivateKey {
191191
/// # Errors
192192
///
193193
/// Errors if the DER representation of the public key can’t be derived.
194-
pub fn fingerprint(&self) -> Result<[u8; 32], pkcs8::Error> {
194+
pub fn fingerprint(&self) -> pkcs8::spki::Result<[u8; 32]> {
195195
let bytes = match self {
196196
PrivateKey::Rsa(key) => key.to_public_key().to_public_key_der()?,
197197
PrivateKey::EcP256(key) => key.public_key().to_public_key_der()?,

0 commit comments

Comments
 (0)