Przeglądaj źródła

Adapt to new std::os::$platform modules

In 1f5f76adc36082ec514a6cfa4ad2d7e6655a5253, OS-specific modules
in std:: were re-ordered. This change adapts to the new module layout.
Adrian Heine 11 lat temu
rodzic
commit
73cbe6f90b
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/lib.rs

+ 2 - 2
src/lib.rs

@@ -925,7 +925,7 @@ impl fmt::Display for RelativeSchemeData {
 
 #[cfg(unix)]
 fn path_to_file_url_path(path: &Path) -> Result<Vec<String>, ()> {
-    use std::os::unix::OsStrExt;
+    use std::os::unix::prelude::OsStrExt;
     if !path.is_absolute() {
         return Err(())
     }
@@ -970,7 +970,7 @@ fn path_to_file_url_path(path: &Path) -> Result<Vec<String>, ()> {
 #[cfg(unix)]
 fn file_url_path_to_pathbuf(path: &[String]) -> Result<PathBuf, ()> {
     use std::ffi::OsStr;
-    use std::os::unix::OsStrExt;
+    use std::os::unix::prelude::OsStrExt;
     use std::path::PathBuf;
 
     if path.is_empty() {