clippy: fix warnings from collapsible_match lint

This commit is contained in:
Daniel Hofstetter
2026-04-16 15:17:41 +02:00
parent 4cd9858bfd
commit af30aa40a4
+4 -12
View File
@@ -122,19 +122,11 @@ fn applies(
// See if latch must start.
if match_address(addr1, reader, pattern, context, &command.location)? {
match addr2 {
Address::Line(n) => {
if linenum >= *n {
context.last_address = true;
} else {
command.start_line = Some(linenum);
}
Address::Line(n) if linenum >= *n => {
context.last_address = true;
}
Address::RelLine(n) => {
if *n == 0 {
context.last_address = true;
} else {
command.start_line = Some(linenum);
}
Address::RelLine(n) if *n == 0 => {
context.last_address = true;
}
_ => {
command.start_line = Some(linenum);