diff --git a/crates/quicprochat-client/src/client/v2_tui.rs b/crates/quicprochat-client/src/client/v2_tui.rs index d05daf0..765ab36 100644 --- a/crates/quicprochat-client/src/client/v2_tui.rs +++ b/crates/quicprochat-client/src/client/v2_tui.rs @@ -829,7 +829,7 @@ fn draw_input(frame: &mut Frame, app: &TuiApp, area: Rect) { frame.render_widget(input_text, area); // Position cursor in the input area. - if !app.input.is_empty() || true { + if !app.input.is_empty() { let cursor_x = area.x + 1 + app.input_cursor as u16; let cursor_y = area.y + 1; if cursor_x < area.x + area.width - 1 { diff --git a/crates/quicprochat-p2p/src/routing.rs b/crates/quicprochat-p2p/src/routing.rs index 53353f9..8c3bb24 100644 --- a/crates/quicprochat-p2p/src/routing.rs +++ b/crates/quicprochat-p2p/src/routing.rs @@ -413,10 +413,10 @@ mod tests { }; router.add_peer(pk, route); - assert!(router.peers.lock().unwrap().contains_key(&pk)); + assert!(router.peers.lock().expect("routing table lock poisoned").contains_key(&pk)); router.remove_peer(&pk); - assert!(!router.peers.lock().unwrap().contains_key(&pk)); + assert!(!router.peers.lock().expect("routing table lock poisoned").contains_key(&pk)); drop(router); Arc::try_unwrap(node).ok().expect("sole owner").close().await; diff --git a/crates/quicprochat-server/src/webtransport.rs b/crates/quicprochat-server/src/webtransport.rs index 8b7b2f8..c0c0828 100644 --- a/crates/quicprochat-server/src/webtransport.rs +++ b/crates/quicprochat-server/src/webtransport.rs @@ -415,6 +415,6 @@ pub fn build_webtransport_server_config( mod tests { #[test] fn webtransport_module_compiles() { - assert!(true); + // Module-level compilation check; no runtime assertion needed. } }