fix: remove TUI boolean bug, P2P unwrap violation, and WebTransport placeholder

- Remove `|| true` from cursor positioning condition in v2_tui.rs
- Replace .lock().unwrap() with .expect() in P2P routing tests
- Remove assert!(true) placeholder in WebTransport test
This commit is contained in:
2026-03-07 20:27:59 +01:00
parent b98dcc27ae
commit 3708b8df41
3 changed files with 4 additions and 4 deletions

View File

@@ -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 {