Auto-fix clippy::collapsible_if violations (#36428)
Release Notes: - N/A
This commit is contained in:
parent
9e8ec72bd5
commit
8f567383e4
281 changed files with 6628 additions and 7089 deletions
|
@ -39,10 +39,10 @@ impl SlashCommand for ContextServerSlashCommand {
|
|||
|
||||
fn label(&self, cx: &App) -> language::CodeLabel {
|
||||
let mut parts = vec![self.prompt.name.as_str()];
|
||||
if let Some(args) = &self.prompt.arguments {
|
||||
if let Some(arg) = args.first() {
|
||||
parts.push(arg.name.as_str());
|
||||
}
|
||||
if let Some(args) = &self.prompt.arguments
|
||||
&& let Some(arg) = args.first()
|
||||
{
|
||||
parts.push(arg.name.as_str());
|
||||
}
|
||||
create_label_for_command(parts[0], &parts[1..], cx)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue