We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3071164 commit c037aecCopy full SHA for c037aec
src/cli/rustup_mode.rs
@@ -1868,13 +1868,12 @@ fn output_completion_script(
1868
);
1869
}
1870
CompletionCommand::Cargo => {
1871
- if let Shell::Zsh = shell {
1872
- writeln!(process.stdout().lock(), "#compdef cargo")?;
1873
- }
1874
-
1875
let script = match shell {
1876
Shell::Bash => "/etc/bash_completion.d/cargo",
1877
- Shell::Zsh => "/share/zsh/site-functions/_cargo",
+ Shell::Zsh => {
+ writeln!(process.stdout().lock(), "#compdef cargo")?;
+ "/share/zsh/site-functions/_cargo"
+ }
1878
_ => {
1879
return Err(anyhow!(
1880
"{command} does not currently support completions for {shell}",
0 commit comments