Skip to content

Commit ccdb043

Browse files
authored
dma: clean up a TODO
1 parent 9775288 commit ccdb043

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hal/src/dma/cr.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,14 +379,13 @@ impl Cr {
379379
}
380380

381381
/// Get the priority level.
382+
#[allow(clippy::wildcard_in_or_patterns)]
382383
pub const fn priority(&self) -> Priority {
383384
match (self.val >> 12) & 0b11 {
384385
0b00 => Priority::Low,
385386
0b01 => Priority::Medium,
386387
0b10 => Priority::High,
387-
0b11 => Priority::VeryHigh,
388-
// TODO: convert to `unreachable` when const panic is stabilized
389-
_ => Priority::Low,
388+
0b11 | _ => Priority::VeryHigh,
390389
}
391390
}
392391

0 commit comments

Comments
 (0)