D1845: rust: move import of PathBuf
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Thu Jan 11 13:40:23 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG11c86ab69e67: rust: move import of PathBuf (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1845?vs=4789&id=4796
REVISION DETAIL
https://phab.mercurial-scm.org/D1845
AFFECTED FILES
rust/hgcli/build.rs
CHANGE DETAILS
diff --git a/rust/hgcli/build.rs b/rust/hgcli/build.rs
--- a/rust/hgcli/build.rs
+++ b/rust/hgcli/build.rs
@@ -8,9 +8,6 @@
use std::collections::HashMap;
use std::env;
use std::path::Path;
-#[cfg(target_os = "windows")]
-use std::path::PathBuf;
-
use std::process::Command;
struct PythonConfig {
@@ -77,6 +74,8 @@
#[cfg(target_os = "windows")]
fn have_shared(config: &PythonConfig) -> bool {
+ use std::path::PathBuf;
+
// python27.dll should exist next to python2.7.exe.
let mut dll = PathBuf::from(&config.python);
dll.pop();
To: indygreg, #hg-reviewers, yuja
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list