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:
Piotr Osiewicz
2025-08-19 21:26:17 +02:00
committed by GitHub
parent df9c2aefb1
commit 05fc0c432c
239 changed files with 854 additions and 1015 deletions
+3 -3
View File
@@ -93,16 +93,16 @@ impl<M: ManagedView> PopoverMenuHandle<M> {
self.0
.borrow()
.as_ref()
.map_or(false, |state| state.menu.borrow().as_ref().is_some())
.is_some_and(|state| state.menu.borrow().as_ref().is_some())
}
pub fn is_focused(&self, window: &Window, cx: &App) -> bool {
self.0.borrow().as_ref().map_or(false, |state| {
self.0.borrow().as_ref().is_some_and(|state| {
state
.menu
.borrow()
.as_ref()
.map_or(false, |model| model.focus_handle(cx).is_focused(window))
.is_some_and(|model| model.focus_handle(cx).is_focused(window))
})
}
-1
View File
@@ -105,7 +105,6 @@ impl Element for StickyItemsElement {
_window: &mut Window,
_cx: &mut App,
) -> Self::PrepaintState {
()
}
fn paint(