diff options
author | Aleksey Kladov <[email protected]> | 2019-09-18 12:24:20 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-09-18 12:24:20 +0100 |
commit | 1e16ac031542b629d7997816592742dbf9f911f6 (patch) | |
tree | a907d71d440040f1371814cfed6af6f637e38b63 /crates/ra_tools/src/lib.rs | |
parent | 630d212525192c714d4fbab398031aa88c49e538 (diff) |
tweak installation process
Diffstat (limited to 'crates/ra_tools/src/lib.rs')
-rw-r--r-- | crates/ra_tools/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ra_tools/src/lib.rs b/crates/ra_tools/src/lib.rs index d47660369..9ba23caaa 100644 --- a/crates/ra_tools/src/lib.rs +++ b/crates/ra_tools/src/lib.rs | |||
@@ -79,13 +79,13 @@ pub fn project_root() -> PathBuf { | |||
79 | Path::new(&env!("CARGO_MANIFEST_DIR")).ancestors().nth(2).unwrap().to_path_buf() | 79 | Path::new(&env!("CARGO_MANIFEST_DIR")).ancestors().nth(2).unwrap().to_path_buf() |
80 | } | 80 | } |
81 | 81 | ||
82 | pub struct Cmd { | 82 | pub struct Cmd<'a> { |
83 | pub unix: &'static str, | 83 | pub unix: &'a str, |
84 | pub windows: &'static str, | 84 | pub windows: &'a str, |
85 | pub work_dir: &'static str, | 85 | pub work_dir: &'a str, |
86 | } | 86 | } |
87 | 87 | ||
88 | impl Cmd { | 88 | impl Cmd<'_> { |
89 | pub fn run(self) -> Result<()> { | 89 | pub fn run(self) -> Result<()> { |
90 | if cfg!(windows) { | 90 | if cfg!(windows) { |
91 | run(self.windows, self.work_dir) | 91 | run(self.windows, self.work_dir) |