Skip to content

Commit

Permalink
Implement Debug for IdleTimeout.
Browse files Browse the repository at this point in the history
Fix typo.
  • Loading branch information
vvvviiv authored and djc committed Oct 23, 2023
1 parent dd34d57 commit 15222f2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion quinn-proto/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ impl fmt::Debug for TransportConfig {
congestion_controller_factory: _,
enable_segmentation_offload,
} = self;
fmt.debug_struct("TranportConfig")
fmt.debug_struct("TransportConfig")
.field("max_concurrent_bidi_streams", max_concurrent_bidi_streams)
.field("max_concurrent_uni_streams", max_concurrent_uni_streams)
.field("max_idle_timeout", max_idle_timeout)
Expand Down Expand Up @@ -999,3 +999,9 @@ impl std::convert::TryFrom<Duration> for IdleTimeout {
Ok(Self(inner))
}
}

impl fmt::Debug for IdleTimeout {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
self.0.fmt(f)
}
}

0 comments on commit 15222f2

Please sign in to comment.