summaryrefslogtreecommitdiff
path: root/libssh2-sys/build.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-25 09:44:24 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-25 09:44:24 -0700
commitb41fbc927ff55525fc4a6c31aea83e49604f84bc (patch)
treedd6600c32c73786e5ec9f9ab7efa405622765cd6 /libssh2-sys/build.rs
parent20051a11312ff1769bd21c461232c0cb8bc99815 (diff)
downloadssh2-rs-b41fbc927ff55525fc4a6c31aea83e49604f84bc.zip
Update to rust master
Diffstat (limited to 'libssh2-sys/build.rs')
-rw-r--r--libssh2-sys/build.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/libssh2-sys/build.rs b/libssh2-sys/build.rs
index 703199c..db808a0 100644
--- a/libssh2-sys/build.rs
+++ b/libssh2-sys/build.rs
@@ -1,3 +1,5 @@
+#![feature(convert)]
+
extern crate "pkg-config" as pkg_config;
use std::env;
@@ -40,8 +42,8 @@ fn main() {
Err(..) => {}
}
- let src = PathBuf::new(&env::var_os("CARGO_MANIFEST_DIR").unwrap());
- let dst = PathBuf::new(&env::var_os("OUT_DIR").unwrap());
+ let src = PathBuf::from(&env::var_os("CARGO_MANIFEST_DIR").unwrap());
+ let dst = PathBuf::from(&env::var_os("OUT_DIR").unwrap());
let mut config_opts = Vec::new();
if windows {