summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse/stream.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/parse/stream.rs')
-rw-r--r--openpgp/src/parse/stream.rs13
1 files changed, 12 insertions, 1 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs
index a23cda9f..cca238dc 100644
--- a/openpgp/src/parse/stream.rs
+++ b/openpgp/src/parse/stream.rs
@@ -1637,7 +1637,7 @@ mod test {
use super::*;
use crate::parse::Parse;
- #[derive(Debug, PartialEq)]
+ #[derive(PartialEq)]
struct VHelper {
good: usize,
unknown: usize,
@@ -1646,6 +1646,17 @@ mod test {
keys: Vec<TPK>,
}
+ impl std::fmt::Debug for VHelper {
+ fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
+ f.debug_struct("VHelper")
+ .field("good", &self.good)
+ .field("unknown", &self.unknown)
+ .field("bad", &self.bad)
+ .field("error", &self.error)
+ .finish()
+ }
+ }
+
impl Default for VHelper {
fn default() -> Self {
VHelper {