Skip to content

Commit 1a13ba8

Browse files
Jonathan Woollett-LightShadowCurse
authored andcommitted
fix: missing_debug_implementations
Signed-off-by: Jonathan Woollett-Light <[email protected]>
1 parent 97d83ee commit 1a13ba8

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/crc.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//! read/written.
66
77
use crc64::crc64;
8+
use std::fmt;
89
use std::io::{Read, Write};
910

1011
/// Computes the CRC64 checksum of the read bytes.
@@ -29,6 +30,12 @@ pub struct CRC64Reader<T> {
2930
crc64: u64,
3031
}
3132

33+
impl<T> fmt::Debug for CRC64Reader<T> {
34+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
35+
write!(f, "CRC64Reader {{ .. }}")
36+
}
37+
}
38+
3239
impl<T> CRC64Reader<T>
3340
where
3441
T: Read,
@@ -76,6 +83,12 @@ pub struct CRC64Writer<T> {
7683
crc64: u64,
7784
}
7885

86+
impl<T> fmt::Debug for CRC64Writer<T> {
87+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
88+
write!(f, "CRC64Writer {{ .. }}")
89+
}
90+
}
91+
7992
impl<T> CRC64Writer<T>
8093
where
8194
T: Write,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
3-
#![deny(missing_docs)]
3+
#![deny(missing_docs, missing_debug_implementations)]
44

55
//! Defines a generic interface for version tolerant serialization and
66
//! implements it for primitive data types using `bincode` as backend.

0 commit comments

Comments
 (0)