Placate clippy

This commit is contained in:
Joscha 2022-08-17 23:06:49 +02:00
parent 80dad00125
commit 6dc7d2bd0b
2 changed files with 30 additions and 40 deletions

View file

@ -256,15 +256,15 @@ enum Row<Id> {
impl<Id> Row<Id> {
fn id(&self) -> Option<&Id> {
match self {
Row::Unselectable { .. } => None,
Row::Selectable { id, .. } => Some(id),
Self::Unselectable { .. } => None,
Self::Selectable { id, .. } => Some(id),
}
}
fn size(&self, frame: &mut Frame, max_width: Option<u16>, max_height: Option<u16>) -> Size {
match self {
Row::Unselectable { normal } => normal.size(frame, max_width, max_height),
Row::Selectable {
Self::Unselectable { normal } => normal.size(frame, max_width, max_height),
Self::Selectable {
normal, selected, ..
} => {
let normal_size = normal.size(frame, max_width, max_height);