improve maitake timer wheel #1329
Annotations
10 errors and 8 warnings
run rustdoc:
maitake/src/time/clock.rs#L39
error: missing documentation for a method
--> maitake/src/time/clock.rs:39:5
|
39 | fn tick_duration(&self) -> Duration;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D missing-docs` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(missing_docs)]`
|
run rustdoc:
maitake/src/time/clock.rs#L42
error: missing documentation for a method
--> maitake/src/time/clock.rs:42:5
|
42 | fn now(&self) -> Instant {
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
run rustdoc:
maitake/src/time/clock.rs#L48
error: missing documentation for a method
--> maitake/src/time/clock.rs:48:5
|
48 | fn max_duration(&self) -> Duration {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
run rustdoc:
maitake/src/time/timer.rs#L307
error: missing documentation for a method
--> maitake/src/time/timer.rs:307:5
|
307 | pub fn now(&self) -> Instant {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
run rustdoc:
maitake/src/time/timer.rs#L65
error: unresolved link to `Timer::advance`
--> maitake/src/time/timer.rs:65:58
|
65 | /// must be driven by a *time source*, which calls the [`Timer::advance`] method
| ^^^^^^^^^^^^^^ the struct `Timer` has no field or associated item named `advance`
|
= note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]`
|
run rustdoc:
maitake/src/time/timer.rs#L66
error: unresolved link to `Timer::force_advance`
--> maitake/src/time/timer.rs:66:47
|
66 | /// and/or the [`Timer::pend_duration`] and [`Timer::force_advance`] methods.
| ^^^^^^^^^^^^^^^^^^^^ the struct `Timer` has no field or associated item named `force_advance`
|
run rustdoc:
maitake/src/time/timer.rs#L86
error: unresolved link to `Timer::advance`
--> maitake/src/time/timer.rs:86:7
|
86 | /// [`Timer::advance`] methods.
| ^^^^^^^^^^^^^^ the struct `Timer` has no field or associated item named `advance`
|
run rustdoc:
maitake/src/time/timer.rs#L88
error: unresolved link to `Timer::advance`
--> maitake/src/time/timer.rs:88:7
|
88 | /// [`Timer::advance`] will attempt to optimistically acquire a spinlock, and
| ^^^^^^^^^^^^^^ the struct `Timer` has no field or associated item named `advance`
|
run rustdoc:
maitake/src/time/timer.rs#L99
error: unresolved link to `Timer::force_advance_ticks`
--> maitake/src/time/timer.rs:99:7
|
99 | /// [`Timer::force_advance_ticks`] method periodically outside of the interrupt
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the struct `Timer` has no field or associated item named `force_advance_ticks`
|
run rustdoc:
maitake/src/time/timer.rs#L115
error: unresolved link to `Timer::advance_ticks`
--> maitake/src/time/timer.rs:115:7
|
115 | /// [`Timer::advance_ticks`]`(1)` or [`Timer::pend_ticks`]`(1)` in the interrupt
| ^^^^^^^^^^^^^^^^^^^^ the struct `Timer` has no field or associated item named `advance_ticks`
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: extractions/setup-just@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run rustdoc:
maitake/src/time/clock.rs#L161
warning: unused variable: `earlier`
--> maitake/src/time/clock.rs:161:42
|
161 | pub fn checked_duration_since(&self, earlier: Instant) -> Option<Duration> {
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_earlier`
|
= note: `#[warn(unused_variables)]` on by default
|
run rustdoc:
maitake/src/time/clock.rs#L177
warning: unused variable: `duration`
--> maitake/src/time/clock.rs:177:31
|
177 | pub fn checked_add(&self, duration: Duration) -> Option<Instant> {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration`
|
run rustdoc:
maitake/src/time/clock.rs#L186
warning: unused variable: `duration`
--> maitake/src/time/clock.rs:186:31
|
186 | pub fn checked_sub(&self, duration: Duration) -> Option<Instant> {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration`
|
run rustdoc:
maitake/src/time/clock.rs#L39
warning: missing documentation for a method
--> maitake/src/time/clock.rs:39:5
|
39 | fn tick_duration(&self) -> Duration;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> maitake/src/time.rs:45:9
|
45 | #![warn(missing_docs, missing_debug_implementations)]
| ^^^^^^^^^^^^
|
run rustdoc:
maitake/src/time/clock.rs#L42
warning: missing documentation for a method
--> maitake/src/time/clock.rs:42:5
|
42 | fn now(&self) -> Instant {
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
run rustdoc:
maitake/src/time/clock.rs#L48
warning: missing documentation for a method
--> maitake/src/time/clock.rs:48:5
|
48 | fn max_duration(&self) -> Duration {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
run rustdoc:
maitake/src/time/timer.rs#L307
warning: missing documentation for a method
--> maitake/src/time/timer.rs:307:5
|
307 | pub fn now(&self) -> Instant {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
The logs for this run have expired and are no longer available.
Loading