Skip to content

Commit a4fe94a

Browse files
Make Duration::not_zero public.
This is useful for downstream wanting to re-implement `TcpTransport` This struct is only ever exposed through the `unversionned` module so its fine to expose this method and remove it in the future
1 parent e196929 commit a4fe94a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/timings.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ pub struct NextTimeout {
180180
}
181181

182182
impl NextTimeout {
183-
pub(crate) fn not_zero(&self) -> Option<Duration> {
183+
pub fn not_zero(&self) -> Option<Duration> {
184184
if self.after.is_not_happening() {
185185
None
186186
} else if self.after.is_zero() {

0 commit comments

Comments
 (0)