Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 1 addition & 7 deletions pkcs1/src/private_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,7 @@ impl<'a> fmt::Debug for RsaPrivateKey<'a> {
.field("version", &self.version())
.field("modulus", &self.modulus)
.field("public_exponent", &self.public_exponent)
.field("private_exponent", &"...")
.field("prime1", &"...")
.field("prime2", &"...")
.field("exponent1", &"...")
.field("exponent2", &"...")
.field("coefficient", &"...")
.finish() // TODO: use `finish_non_exhaustive` when stable
.finish_non_exhaustive()
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkcs8/src/encrypted_private_key_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@ impl<'a> fmt::Debug for EncryptedPrivateKeyInfo<'a> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("EncryptedPrivateKeyInfo")
.field("encryption_algorithm", &self.encryption_algorithm)
.finish() // TODO(tarcieri): use `finish_non_exhaustive` when stable
.finish_non_exhaustive()
}
}
2 changes: 1 addition & 1 deletion pkcs8/src/private_key_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl<'a> fmt::Debug for PrivateKeyInfo<'a> {
.field("version", &self.version())
.field("algorithm", &self.algorithm)
.field("public_key", &self.public_key)
.finish() // TODO: use `finish_non_exhaustive` when stable
.finish_non_exhaustive()
}
}

Expand Down
2 changes: 1 addition & 1 deletion sec1/src/private_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,6 @@ impl<'a> fmt::Debug for EcPrivateKey<'a> {
f.debug_struct("EcPrivateKey")
.field("parameters", &self.parameters)
.field("public_key", &self.public_key)
.finish() // TODO: use `finish_non_exhaustive` when stable
.finish_non_exhaustive()
}
}