vmm: gdb: Use map_or instead of map().unwrap_or()

Do the necessary replacement to satisfy clippy::map_unwrap_or.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-03-06 00:31:21 +01:00
committed by Rob Bradford
parent 3c62fabfc3
commit e61349c10e
+1 -1
View File
@@ -484,7 +484,7 @@ impl run_blocking::BlockingEventLoop for GdbEventLoop {
} }
} }
if conn.peek().map(|b| b.is_some()).unwrap_or(true) { if conn.peek().map_or(true, |b| b.is_some()) {
let byte = conn let byte = conn
.read() .read()
.map_err(run_blocking::WaitForStopReasonError::Connection)?; .map_err(run_blocking::WaitForStopReasonError::Connection)?;