summaryrefslogtreecommitdiffstats
path: root/vendor/gix-packetline-blocking/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gix-packetline-blocking/src/lib.rs')
-rw-r--r--vendor/gix-packetline-blocking/src/lib.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/vendor/gix-packetline-blocking/src/lib.rs b/vendor/gix-packetline-blocking/src/lib.rs
index c5dce1c66..95ecd59d2 100644
--- a/vendor/gix-packetline-blocking/src/lib.rs
+++ b/vendor/gix-packetline-blocking/src/lib.rs
@@ -3,10 +3,10 @@
//! For reading the packet line format use the [`StreamingPeekableIter`], and for writing the [`Writer`].
//! ## Feature Flags
#![cfg_attr(
- feature = "document-features",
- cfg_attr(doc, doc = ::document_features::document_features!())
+ all(doc, all(doc, feature = "document-features")),
+ doc = ::document_features::document_features!()
)]
-#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+#![cfg_attr(all(doc, feature = "document-features"), feature(doc_cfg, doc_auto_cfg))]
#![deny(missing_docs, rust_2018_idioms, unsafe_code)]
const U16_HEX_BYTES: usize = 4;
@@ -91,6 +91,8 @@ pub struct StreamingPeekableIter<T> {
delimiters: &'static [PacketLineRef<'static>],
is_done: bool,
stopped_at: Option<PacketLineRef<'static>>,
+ #[cfg_attr(all(not(feature = "async-io"), not(feature = "blocking-io")), allow(dead_code))]
+ trace: bool,
}
/// Utilities to help decoding packet lines