Make from-source install use cargo installed binary by default

This commit is contained in:
Aleksey Kladov 2020-03-20 12:50:50 +01:00
parent 467a040509
commit 4b5435b52b
6 changed files with 6 additions and 21 deletions

View file

@ -24,7 +24,6 @@ pub struct ServerOpt {
impl InstallCmd {
pub fn run(self) -> Result<()> {
let both = self.server.is_some() && self.client.is_some();
if cfg!(target_os = "macos") {
fix_path_for_mac().context("Fix path for mac")?
}
@ -34,16 +33,6 @@ impl InstallCmd {
if let Some(client) = self.client {
install_client(client).context("install client")?;
}
if both {
eprintln!(
"
Installation complete.
Add `\"rust-analyzer.serverPath\": \"rust-analyzer\",` to VS Code settings,
otherwise it will use the latest release from GitHub.
"
)
}
Ok(())
}
}