Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions spki/tests/spki.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ fn decode_and_fingerprint_spki() {

#[test]
#[cfg(feature = "pem")]
#[cfg(feature = "fingerprint")]
Comment on lines 75 to +76
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally we put these on a single line ala:

Suggested change
#[cfg(feature = "pem")]
#[cfg(feature = "fingerprint")]
#[cfg(all(feature = "pem", feature = "fingerprint"))]

fn decode_ed25519_pem() {
let doc: PublicKeyDocument = ED25519_PEM_EXAMPLE.parse().unwrap();
assert_eq!(doc.as_ref(), ED25519_DER_EXAMPLE);
Expand All @@ -84,6 +85,7 @@ fn decode_ed25519_pem() {

#[test]
#[cfg(feature = "alloc")]
#[cfg(feature = "fingerprint")]
fn encode_ed25519_der() {
let pk = SubjectPublicKeyInfo::try_from(ED25519_DER_EXAMPLE).unwrap();
let pk_encoded = pk.to_vec().unwrap();
Expand All @@ -92,6 +94,7 @@ fn encode_ed25519_der() {

#[test]
#[cfg(feature = "pem")]
#[cfg(feature = "fingerprint")]
fn encode_ed25519_pem() {
let pk = SubjectPublicKeyInfo::try_from(ED25519_DER_EXAMPLE).unwrap();
let pk_encoded = PublicKeyDocument::try_from(pk)
Expand Down