aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_tools/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_tools/src/lib.rs')
-rw-r--r--crates/ra_tools/src/lib.rs10
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
82pub struct Cmd { 82pub 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
88impl Cmd { 88impl 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)