diff options
| author | Oliver Schneider <git-no-reply-9879165716479413131@oli-obk.de> | 2018-03-27 12:14:46 +0200 |
|---|---|---|
| committer | Oliver Schneider <git-no-reply-9879165716479413131@oli-obk.de> | 2018-03-27 12:14:46 +0200 |
| commit | 96d5af36f87c9b4ca09a9aec4a49154404264501 (patch) | |
| tree | 856fdb72f244289e1214a0ef4efb04802580f8c7 /src | |
| parent | b6e2c47df0bf63da8a31089e86ef40b53314308c (diff) | |
| download | rust-96d5af36f87c9b4ca09a9aec4a49154404264501.tar.gz rust-96d5af36f87c9b4ca09a9aec4a49154404264501.zip | |
Version bump
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index ff75388030e..e5d78c35d0b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -115,10 +115,10 @@ pub fn main() { }) .collect(); - let current_dir = std::env::current_dir() - .expect("could not read current directory") + let current_dir = PathBuf::from(std::env::var("CARGO_MANIFEST_DIR") + .expect("CARGO_MANIFEST_DIR not set")) .canonicalize() - .expect("current directory cannot be canonicalized"); + .expect("manifest directory cannot be canonicalized"); let mut current_path: &Path = ¤t_dir; |
