diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000000..018fa32046 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[build] +rustflags = ["-Wmissing_debug_implementations"] diff --git a/src/bao_slice_decoder.rs b/src/bao_slice_decoder.rs index 52fce08d05..81fd33aa69 100644 --- a/src/bao_slice_decoder.rs +++ b/src/bao_slice_decoder.rs @@ -77,6 +77,7 @@ fn right_descendant(offset: NodeNum, len: NodeNum) -> Option { Some(offset) } +#[derive(Debug)] pub struct SliceIter { len: u64, range: Range, @@ -229,6 +230,7 @@ impl StreamItem { } } +#[derive(Debug)] pub struct SliceValidator { /// the inner reader inner: R, @@ -493,6 +495,7 @@ impl Read for SliceDecoder { } } +#[derive(Debug)] pub struct AsyncSliceDecoder { inner: SliceValidator, current_item: Option, diff --git a/src/provider.rs b/src/provider.rs index caf876ef9f..5a59a078fc 100644 --- a/src/provider.rs +++ b/src/provider.rs @@ -155,6 +155,7 @@ impl Builder { /// is a shorthand to create a suitable [`Builder`]. /// /// This runs a tokio task which can be aborted and joined if desired. +#[derive(Debug)] pub struct Provider { listen_addr: SocketAddr, keypair: Keypair,