File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,6 +148,12 @@ impl ToBuf for &[u8] {
148148#[ allow( clippy:: len_without_is_empty) ]
149149pub struct TmpBuf < ' a > ( & ' a mut [ u8 ] , usize ) ;
150150
151+ impl core:: fmt:: Debug for TmpBuf < ' _ > {
152+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
153+ f. debug_struct ( "TmpBuf" ) . field ( "data_len" , & self . 1 ) . finish ( )
154+ }
155+ }
156+
151157impl < ' a > TmpBuf < ' a > {
152158 /// Create a new temporary buffer from a mutable slice.
153159 pub fn new ( buf : & ' a mut [ u8 ] ) -> Self {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use crate::crypto::rust_crypto;
1515/// DTLS configuration shared by all connections.
1616///
1717/// Build with [`Config::builder()`] or use [`Config::default()`].
18- #[ derive( Clone ) ]
18+ #[ derive( Clone , Debug ) ]
1919pub struct Config {
2020 mtu : usize ,
2121 max_queue_rx : usize ,
@@ -201,6 +201,7 @@ impl Config {
201201}
202202
203203/// Builder for [`Config`]. See each setter for defaults.
204+ #[ derive( Debug ) ]
204205pub struct ConfigBuilder {
205206 mtu : usize ,
206207 max_queue_rx : usize ,
Original file line number Diff line number Diff line change 155155#![ warn( clippy:: all) ]
156156#![ allow( unknown_lints) ]
157157#![ deny( missing_docs) ]
158+ #![ deny( missing_debug_implementations) ]
158159
159160#[ macro_use]
160161extern crate log;
You can’t perform that action at this time.
0 commit comments