Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed May 29, 2024
1 parent ba7867c commit c15b2dd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,7 @@ fn serialize_key(
Error::InternalError
})?
}
KeySerialization::Pkcs8Der => pub_key_der.try_into().map_err(|_| {
error!("Too large key for serialization");
Error::InternalError
})?,
KeySerialization::Pkcs8Der => pub_key_der.into(),
_ => {
return Err(Error::InvalidSerializationFormat);
}
Expand Down

0 comments on commit c15b2dd

Please sign in to comment.