Fix clippy::manual_map lint violations (#36584)
#36577 Release Notes: - N/A
This commit is contained in:
@@ -2583,10 +2583,8 @@ impl Pane {
|
||||
.children(
|
||||
std::iter::once(if let Some(decorated_icon) = decorated_icon {
|
||||
Some(div().child(decorated_icon.into_any_element()))
|
||||
} else if let Some(icon) = icon {
|
||||
Some(div().child(icon.into_any_element()))
|
||||
} else {
|
||||
None
|
||||
icon.map(|icon| div().child(icon.into_any_element()))
|
||||
})
|
||||
.flatten(),
|
||||
)
|
||||
|
||||
@@ -4732,14 +4732,12 @@ impl Workspace {
|
||||
})
|
||||
});
|
||||
|
||||
if let Some(view) = view {
|
||||
Some(entry.insert(FollowerView {
|
||||
view.map(|view| {
|
||||
entry.insert(FollowerView {
|
||||
view,
|
||||
location: None,
|
||||
}))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user