Explorar o código

Apparently std::os::unix::osStrExt is now std::os::unix::ffi::OsStrExt.

Eirik Schwenke %!s(int64=11) %!d(string=hai) anos
pai
achega
30a48e05c2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/dir.rs

+ 1 - 1
src/dir.rs

@@ -84,7 +84,7 @@ impl Git {
     /// Discover a Git repository on or above this directory, scanning it for
     /// the files' statuses if one is found.
     fn scan(path: &Path) -> Result<Git, git2::Error> {
-        use std::os::unix::OsStrExt;
+        use std::os::unix::ffi::OsStrExt;
         use std::ffi::AsOsStr;
 
         // TODO: libgit2-rs uses the new Path module, but exa still uses the