From 1e16ac031542b629d7997816592742dbf9f911f6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 18 Sep 2019 14:24:20 +0300 Subject: tweak installation process --- crates/ra_tools/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crates/ra_tools/src/lib.rs') 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 { Path::new(&env!("CARGO_MANIFEST_DIR")).ancestors().nth(2).unwrap().to_path_buf() } -pub struct Cmd { - pub unix: &'static str, - pub windows: &'static str, - pub work_dir: &'static str, +pub struct Cmd<'a> { + pub unix: &'a str, + pub windows: &'a str, + pub work_dir: &'a str, } -impl Cmd { +impl Cmd<'_> { pub fn run(self) -> Result<()> { if cfg!(windows) { run(self.windows, self.work_dir) -- cgit v1.2.3