aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/install.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-03-20 11:50:50 +0000
committerAleksey Kladov <[email protected]>2020-03-20 12:07:12 +0000
commit4b5435b52bdcb54eea18c80f952cfc3a72975e70 (patch)
treead911289cd4e28036f7a8442422f05a2b97d3268 /xtask/src/install.rs
parent467a040509cd6732de48907e025f83b57b5701b9 (diff)
Make from-source install use cargo installed binary by default
Diffstat (limited to 'xtask/src/install.rs')
-rw-r--r--xtask/src/install.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/xtask/src/install.rs b/xtask/src/install.rs
index d0d745b05..bc32a04b3 100644
--- a/xtask/src/install.rs
+++ b/xtask/src/install.rs
@@ -24,7 +24,6 @@ pub struct ServerOpt {
24 24
25impl InstallCmd { 25impl InstallCmd {
26 pub fn run(self) -> Result<()> { 26 pub fn run(self) -> Result<()> {
27 let both = self.server.is_some() && self.client.is_some();
28 if cfg!(target_os = "macos") { 27 if cfg!(target_os = "macos") {
29 fix_path_for_mac().context("Fix path for mac")? 28 fix_path_for_mac().context("Fix path for mac")?
30 } 29 }
@@ -34,16 +33,6 @@ impl InstallCmd {
34 if let Some(client) = self.client { 33 if let Some(client) = self.client {
35 install_client(client).context("install client")?; 34 install_client(client).context("install client")?;
36 } 35 }
37 if both {
38 eprintln!(
39 "
40 Installation complete.
41
42 Add `\"rust-analyzer.serverPath\": \"rust-analyzer\",` to VS Code settings,
43 otherwise it will use the latest release from GitHub.
44"
45 )
46 }
47 Ok(()) 36 Ok(())
48 } 37 }
49} 38}