Skip to content

fix(server_core): 🐛 Fix controllers disabling with lag #4617

fix(server_core): 🐛 Fix controllers disabling with lag

fix(server_core): 🐛 Fix controllers disabling with lag #4617

Triggered via pull request January 6, 2025 14:31
Status Success
Total duration 6m 42s
Artifacts

rust.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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