diff --git a/Cargo.toml b/Cargo.toml index 12cfa31f4d..33a3776e39 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -123,7 +123,6 @@ float_arithmetic = "allow" indexing_slicing = "allow" let_unit_value = "allow" match_wild_err_arm = "allow" -missing_fields_in_debug = "allow" # TODO: use finish_non_exhaustive multiple_inherent_impl = "allow" multiple_unsafe_ops_per_block = "allow" needless_pass_by_value = "allow" diff --git a/src/proto/h1/conn.rs b/src/proto/h1/conn.rs index 69ca50b1a4..11059cd4e3 100644 --- a/src/proto/h1/conn.rs +++ b/src/proto/h1/conn.rs @@ -1016,7 +1016,7 @@ impl fmt::Debug for State { // Purposefully leaving off other fields.. - builder.finish() + builder.finish_non_exhaustive() } } diff --git a/src/proto/h1/io.rs b/src/proto/h1/io.rs index 5833004768..ab7438a28b 100644 --- a/src/proto/h1/io.rs +++ b/src/proto/h1/io.rs @@ -47,7 +47,7 @@ where f.debug_struct("Buffered") .field("read_buf", &self.read_buf) .field("write_buf", &self.write_buf) - .finish() + .finish_non_exhaustive() } } @@ -596,7 +596,7 @@ impl fmt::Debug for WriteBuf { f.debug_struct("WriteBuf") .field("remaining", &self.remaining()) .field("strategy", &self.strategy) - .finish() + .finish_non_exhaustive() } }