mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
fix(clippy): resolve manual_range_contains and type_complexity lints
This commit is contained in:
1 parent
b24d4e0a27
commit
e139ad7a53
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -773,7 +773,7 @@ mod tests {
|
||||
let (rtt_ms, uart_ok) = G29BridgeReceiver::ping_radxa_relay("127.0.0.1", port)
|
||||
.expect("ping should succeed");
|
||||
handle.join().unwrap();
|
||||
assert!(rtt_ms >= 0.0 && rtt_ms < 250.0);
|
||||
assert!((0.0..250.0).contains(&rtt_ms));
|
||||
assert!(uart_ok);
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -331,7 +331,7 @@ impl SteamFrameGpuiApp {
|
||||
self.latest_controller = mon.latest_controller.clone();
|
||||
|
||||
// Récupération directe du tampon BGRA pré-converti par le worker (zéro swizzle UI)
|
||||
let frame_data: Option<(u32, u32, Arc<Vec<u8>>, Option<Instant>)> = if self.active_tab == ActiveTab::Cockpit
|
||||
let frame_data = if self.active_tab == ActiveTab::Cockpit
|
||||
&& mon.preview_frame_seq != self.last_frame_seq
|
||||
&& !mon.preview_bgra.is_empty()
|
||||
&& mon.preview_width > 0
|
||||
|
||||
Reference in new issue
Block a user