Fix clippy::match-wildcard-for-single-variants
This commit is contained in:
parent
42ed90bc6f
commit
caed50b277
7 changed files with 41 additions and 11 deletions
|
|
@ -117,7 +117,7 @@ impl Direction {
|
|||
match self {
|
||||
Self::Horizontal(properties) => Some(properties),
|
||||
Self::Both { horizontal, .. } => Some(horizontal),
|
||||
_ => None,
|
||||
Self::Vertical(_) => None,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ impl Direction {
|
|||
match self {
|
||||
Self::Vertical(properties) => Some(properties),
|
||||
Self::Both { vertical, .. } => Some(vertical),
|
||||
_ => None,
|
||||
Self::Horizontal(_) => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue