Skip to content

Commit

Permalink
Appease Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernQ committed Feb 12, 2024
1 parent eb19435 commit 8c325ad
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions espflash/src/cli/monitor/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down

0 comments on commit 8c325ad

Please sign in to comment.