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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user