🎨 Colapsa if anidados sugeridos por clippy
This commit is contained in:
parent
1cab0ae9a0
commit
502c00c891
5 changed files with 29 additions and 29 deletions
|
|
@ -42,10 +42,10 @@ impl Component for Item {
|
|||
}
|
||||
|
||||
fn setup(&mut self, _cx: &Context) {
|
||||
if let Self::Nav(nav) = self {
|
||||
if let Some(nav) = nav.get_mut() {
|
||||
nav.alter_prop(PropsOp::prepend_classes("navbar-nav"));
|
||||
}
|
||||
if let Self::Nav(nav) = self
|
||||
&& let Some(nav) = nav.get_mut()
|
||||
{
|
||||
nav.alter_prop(PropsOp::prepend_classes("navbar-nav"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue