improve maitake timer wheel #1330
Annotations
3 errors and 8 warnings
run cargo check (debug):
src/rt.rs#L55
error[E0308]: mismatched types
--> src/rt.rs:55:50
|
55 | pub static TIMER: time::Timer = time::Timer::new(arch::interrupt::TIMER_INTERVAL);
| ---------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Clock`, found `Duration`
| |
| arguments to this function are incorrect
|
note: associated function defined here
--> /home/runner/work/mycelium/mycelium/maitake/src/time/timer.rs:298:16
|
298 | pub fn new(clock: Clock) -> Self {
| ^^^
|
run cargo check (debug):
src/rt.rs#L55
error[E0308]: mismatched types
--> src/rt.rs:55:50
|
55 | pub static TIMER: time::Timer = time::Timer::new(arch::interrupt::TIMER_INTERVAL);
| ---------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Clock`, found `Duration`
| |
| arguments to this function are incorrect
|
note: associated function defined here
--> /home/runner/work/mycelium/mycelium/maitake/src/time/timer.rs:298:16
|
298 | pub fn new(clock: Clock) -> Self {
| ^^^
|
run cargo check (debug)
Process completed with exit code 1.
|
run cargo check (debug):
maitake/src/time/clock.rs#L199
warning: unused variable: `earlier`
--> maitake/src/time/clock.rs:199:42
|
199 | 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 cargo check (debug):
maitake/src/time/clock.rs#L215
warning: unused variable: `duration`
--> maitake/src/time/clock.rs:215:31
|
215 | pub fn checked_add(&self, duration: Duration) -> Option<Instant> {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration`
|
run cargo check (debug):
maitake/src/time/clock.rs#L224
warning: unused variable: `duration`
--> maitake/src/time/clock.rs:224:31
|
224 | pub fn checked_sub(&self, duration: Duration) -> Option<Instant> {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration`
|
run cargo check (debug):
maitake/src/time/clock.rs#L94
warning: missing documentation for an associated function
--> maitake/src/time/clock.rs:94:5
|
94 | pub const fn new(now: fn() -> Ticks, tick_duration: Duration) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> maitake/src/time.rs:45:9
|
45 | #![warn(missing_docs, missing_debug_implementations)]
| ^^^^^^^^^^^^
|
run cargo check (debug):
maitake/src/time/clock.rs#L104
warning: missing documentation for a method
--> maitake/src/time/clock.rs:104:5
|
104 | pub fn tick_duration(&self) -> Duration {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
run cargo check (debug):
maitake/src/time/clock.rs#L109
warning: missing documentation for a method
--> maitake/src/time/clock.rs:109:5
|
109 | pub fn now(&self) -> Instant {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
run cargo check (debug):
maitake/src/time/clock.rs#L115
warning: missing documentation for a method
--> maitake/src/time/clock.rs:115:5
|
115 | pub fn max_duration(&self) -> Duration {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
run cargo check (debug):
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