]> Repositorios git - scryer-prolog.git/commitdiff
use env::current_dir in Machine::current_dir (#833)
authorMark Thom <[email protected]>
Sun, 21 Feb 2021 01:25:34 +0000 (18:25 -0700)
committerMark Thom <[email protected]>
Sun, 21 Feb 2021 01:25:34 +0000 (18:25 -0700)
src/machine/mod.rs

index 384e0daf7e88c442a0bf50372b9e24701b43aafc..a919f3c47c72e0da36a15e7b87320adc26be3eb6 100644 (file)
@@ -120,7 +120,7 @@ pub struct Machine {
 
 #[inline]
 fn current_dir() -> PathBuf {
-    PathBuf::from("./").canonicalize().unwrap_or(PathBuf::from("./"))
+    std::env::current_dir().unwrap_or(PathBuf::from("./"))
 }
 
 include!(concat!(env!("OUT_DIR"), "/libraries.rs"));