Fix clippy::manual_map lint violations (#36584)
#36577 Release Notes: - N/A
This commit is contained in:
@@ -779,13 +779,11 @@ impl ActiveThread {
|
||||
|
||||
let list_state = ListState::new(0, ListAlignment::Bottom, px(2048.));
|
||||
|
||||
let workspace_subscription = if let Some(workspace) = workspace.upgrade() {
|
||||
Some(cx.observe_release(&workspace, |this, _, cx| {
|
||||
let workspace_subscription = workspace.upgrade().map(|workspace| {
|
||||
cx.observe_release(&workspace, |this, _, cx| {
|
||||
this.dismiss_notifications(cx);
|
||||
}))
|
||||
} else {
|
||||
None
|
||||
};
|
||||
})
|
||||
});
|
||||
|
||||
let mut this = Self {
|
||||
language_registry,
|
||||
|
||||
Reference in New Issue
Block a user