File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 55//! read/written.
66
77use crc64:: crc64;
8+ use std:: fmt;
89use 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+
3239impl < T > CRC64Reader < T >
3340where
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+
7992impl < T > CRC64Writer < T >
8093where
8194 T : Write ,
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments