diff --git a/espflash/src/cli/monitor/parser/mod.rs b/espflash/src/cli/monitor/parser/mod.rs index fbcff275..27f53051 100644 --- a/espflash/src/cli/monitor/parser/mod.rs +++ b/espflash/src/cli/monitor/parser/mod.rs @@ -38,17 +38,14 @@ fn resolve_addresses( let name = symbols.get_name(addr); let location = symbols.get_location(addr); - match name { - Some(name) => { - let output = if let Some((file, line_num)) = location { - format!("{matched} - {name}\r\n at {file}:{line_num}\r\n") - } else { - format!("{matched} - {name}\r\n at ??:??\r\n") - }; - out.queue(PrintStyledContent(output.with(Color::Yellow)))?; - } - None => (), - }; + if let Some(name) = name { + let output = if let Some((file, line_num)) = location { + format!("{matched} - {name}\r\n at {file}:{line_num}\r\n") + } else { + format!("{matched} - {name}\r\n at ??:??\r\n") + }; + out.queue(PrintStyledContent(output.with(Color::Yellow)))?; + } } Ok(())