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
|
@ -126,7 +126,7 @@ impl PickerDelegate for KernelPickerDelegate {
|
|||
.collect()
|
||||
};
|
||||
|
||||
return Task::ready(());
|
||||
Task::ready(())
|
||||
}
|
||||
|
||||
fn confirm(&mut self, _secondary: bool, window: &mut Window, cx: &mut Context<Picker<Self>>) {
|
||||
|
|
|
@ -434,7 +434,7 @@ fn runnable_ranges(
|
|||
|
||||
if start_language
|
||||
.zip(end_language)
|
||||
.map_or(false, |(start, end)| start == end)
|
||||
.is_some_and(|(start, end)| start == end)
|
||||
{
|
||||
(vec![snippet_range], None)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue