Skip to content

Commit

Permalink
Make Duration::not_zero public.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sosthene-nitrokey committed Feb 1, 2025
1 parent e196929 commit a4fe94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pub struct NextTimeout {
}

impl NextTimeout {
pub(crate) fn not_zero(&self) -> Option<Duration> {
pub fn not_zero(&self) -> Option<Duration> {

Check failure on line 183 in src/timings.rs

View workflow job for this annotation

GitHub Actions / build_versions (beta)

missing documentation for a method

Check failure on line 183 in src/timings.rs

View workflow job for this annotation

GitHub Actions / build_versions (1.71.1)

missing documentation for a method

Check failure on line 183 in src/timings.rs

View workflow job for this annotation

GitHub Actions / Lint

missing documentation for a method

Check failure on line 183 in src/timings.rs

View workflow job for this annotation

GitHub Actions / Test (gzip)

missing documentation for a method

Check failure on line 183 in src/timings.rs

View workflow job for this annotation

GitHub Actions / Test (json)

missing documentation for a method

Check failure on line 183 in src/timings.rs

View workflow job for this annotation

GitHub Actions / Test (charset)

missing documentation for a method

Check failure on line 183 in src/timings.rs

View workflow job for this annotation

GitHub Actions / Test

missing documentation for a method

Check failure on line 183 in src/timings.rs

View workflow job for this annotation

GitHub Actions / Test (brotli)

missing documentation for a method

Check failure on line 183 in src/timings.rs

View workflow job for this annotation

GitHub Actions / Test (gzip)

missing documentation for a method

Check failure on line 183 in src/timings.rs

View workflow job for this annotation

GitHub Actions / Test (cookies)

missing documentation for a method

Check failure on line 183 in src/timings.rs

View workflow job for this annotation

GitHub Actions / Test (brotli)

missing documentation for a method

Check failure on line 183 in src/timings.rs

View workflow job for this annotation

GitHub Actions / Test (charset)

missing documentation for a method

Check failure on line 183 in src/timings.rs

View workflow job for this annotation

GitHub Actions / Docs

missing documentation for a method
if self.after.is_not_happening() {
None
} else if self.after.is_zero() {
Expand Down

0 comments on commit a4fe94a

Please sign in to comment.