fix(server_core): 🐛 Fix controllers disabling with lag #4617
rust.yml
on: pull_request
check-windows
3m 16s
check-linux
3m 24s
check-macos
55s
build-android
1m 43s
tests
44s
check-format
43s
check-msrv-windows
6m 29s
check-msrv-linux
4m 10s
Annotations
2 warnings
check-windows:
alvr/server_core/src/tracking/mod.rs#L248
warning: `if` chain can be rewritten with `match`
--> alvr\server_core\src\tracking\mod.rs:248:25
|
248 | / if *ts == sample_timestamp {
249 | | return Some(*best_motion_ref);
250 | | } else if *ts > sample_timestamp {
251 | | let diff = ts.saturating_sub(sample_timestamp);
... |
255 | | }
256 | | }
| |_________________________^
|
= help: consider rewriting the `if` chain to use `cmp` and `match`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_chain
= note: `#[warn(clippy::comparison_chain)]` on by default
|
check-linux:
alvr/server_core/src/tracking/mod.rs#L248
warning: `if` chain can be rewritten with `match`
--> alvr/server_core/src/tracking/mod.rs:248:25
|
248 | / if *ts == sample_timestamp {
249 | | return Some(*best_motion_ref);
250 | | } else if *ts > sample_timestamp {
251 | | let diff = ts.saturating_sub(sample_timestamp);
... |
255 | | }
256 | | }
| |_________________________^
|
= help: consider rewriting the `if` chain to use `cmp` and `match`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_chain
= note: `#[warn(clippy::comparison_chain)]` on by default
|