Fix a bunch of other low-hanging style lints (#36498)
- **Fix a bunch of low hanging style lints like unnecessary-return** - **Fix single worktree violation** - **And the rest** Release Notes: - N/A
This commit is contained in:
parent
df9c2aefb1
commit
05fc0c432c
239 changed files with 854 additions and 1015 deletions
|
@ -414,7 +414,7 @@ pub(crate) fn new_debugger_pane(
|
|||
.and_then(|item| item.downcast::<SubView>());
|
||||
let is_hovered = as_subview
|
||||
.as_ref()
|
||||
.map_or(false, |item| item.read(cx).hovered);
|
||||
.is_some_and(|item| item.read(cx).hovered);
|
||||
|
||||
h_flex()
|
||||
.track_focus(&focus_handle)
|
||||
|
@ -427,7 +427,6 @@ pub(crate) fn new_debugger_pane(
|
|||
.bg(cx.theme().colors().tab_bar_background)
|
||||
.on_action(|_: &menu::Cancel, window, cx| {
|
||||
if cx.stop_active_drag(window) {
|
||||
return;
|
||||
} else {
|
||||
cx.propagate();
|
||||
}
|
||||
|
@ -449,7 +448,7 @@ pub(crate) fn new_debugger_pane(
|
|||
.children(pane.items().enumerate().map(|(ix, item)| {
|
||||
let selected = active_pane_item
|
||||
.as_ref()
|
||||
.map_or(false, |active| active.item_id() == item.item_id());
|
||||
.is_some_and(|active| active.item_id() == item.item_id());
|
||||
let deemphasized = !pane.has_focus(window, cx);
|
||||
let item_ = item.boxed_clone();
|
||||
div()
|
||||
|
|
|
@ -528,7 +528,7 @@ impl BreakpointList {
|
|||
cx.background_executor()
|
||||
.spawn(async move { KEY_VALUE_STORE.write_kvp(key, value?).await })
|
||||
} else {
|
||||
return Task::ready(Result::Ok(()));
|
||||
Task::ready(Result::Ok(()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue