Auto-fix clippy::collapsible_if violations (#36428)
Release Notes: - N/A
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user