diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-23 10:49:03 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-23 10:49:03 +0100 |
commit | 0502be3bf4539d24d34d24f3a4b9521d99a32aee (patch) | |
tree | cb7c7609329eeafa45a1cb4a86281fafe2907bf2 /crates | |
parent | 6ec64805e3c93f7f93c7021688be900bc6ab3528 (diff) | |
parent | 364fbd7fc780eb40cb2a51c6ac1646f7c7ab8bde (diff) |
Merge #4093
4093: Simplify config r=matklad a=Veetaha
Co-authored-by: veetaha <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index f60b805a4..fa0b1e226 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs | |||
@@ -132,7 +132,7 @@ impl Config { | |||
132 | set(value, "/cargo/features", &mut self.cargo.features); | 132 | set(value, "/cargo/features", &mut self.cargo.features); |
133 | set(value, "/cargo/loadOutDirsFromCheck", &mut self.cargo.load_out_dirs_from_check); | 133 | set(value, "/cargo/loadOutDirsFromCheck", &mut self.cargo.load_out_dirs_from_check); |
134 | 134 | ||
135 | match get::<bool>(value, "/procMacro/enable") { | 135 | match get(value, "/procMacro/enable") { |
136 | Some(true) => { | 136 | Some(true) => { |
137 | if let Ok(path) = std::env::current_exe() { | 137 | if let Ok(path) = std::env::current_exe() { |
138 | self.proc_macro_srv = Some((path.to_string_lossy().to_string(), vec!["proc-macro".to_string()])); | 138 | self.proc_macro_srv = Some((path.to_string_lossy().to_string(), vec!["proc-macro".to_string()])); |