summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/aead.rs
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2018-11-16 11:33:34 +0100
committerNeal H. Walfield <neal@pep.foundation>2018-11-16 11:40:19 +0100
commit01bba7503c55121a73d7f95de2122101f6d1f067 (patch)
tree5494c75618a2beef81cb5677c5df9b493738e5a1 /openpgp/src/crypto/aead.rs
parentca44e50faa3741fd3d70bcab6a8ffa570ff5e151 (diff)
buffered-reader: Require that BufferedReaders implement Display.
- Also, update BufferedReaders to implement it.
Diffstat (limited to 'openpgp/src/crypto/aead.rs')
-rw-r--r--openpgp/src/crypto/aead.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/openpgp/src/crypto/aead.rs b/openpgp/src/crypto/aead.rs
index abab5e66..eeec9af2 100644
--- a/openpgp/src/crypto/aead.rs
+++ b/openpgp/src/crypto/aead.rs
@@ -409,7 +409,13 @@ impl<R: BufferedReader<C>, C> io::Read for BufferedReaderDecryptor<R, C> {
}
}
-impl <R: BufferedReader<C>, C> fmt::Debug for BufferedReaderDecryptor<R, C> {
+impl<R: BufferedReader<C>, C> fmt::Display for BufferedReaderDecryptor<R, C> {
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ write!(f, "BufferedReaderDecryptor")
+ }
+}
+
+impl<R: BufferedReader<C>, C> fmt::Debug for BufferedReaderDecryptor<R, C> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("BufferedReaderDecryptor")
.field("reader", &self.get_ref().unwrap())