Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit 58a5fb8

Browse files
committed
Fix Debug impl for TestContext
1 parent 8758349 commit 58a5fb8

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

crates/testkit/src/lib.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,7 @@ pub struct TestContext {
5555

5656
impl Debug for TestContext {
5757
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
58-
let mut st = f.debug_struct("TestContext");
59-
st.field("http1", &self.http1).field("local_addr", &self.addr);
60-
61-
#[cfg(feature = "http2")]
62-
{
63-
st = st.field("http1", &self.http2);
64-
}
65-
66-
st.finish()
58+
f.debug_struct("TestContext").field("local_addr", &self.addr).finish()
6759
}
6860
}
6961

0 commit comments

Comments
 (0)