From 73cbe6f90b4208f6137dd63a81be2cb6a6382304 Mon Sep 17 00:00:00 2001 From: Adrian Heine Date: Tue, 17 Mar 2015 12:43:48 +0100 Subject: [PATCH] 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. --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 08c0f8e8..865fd348 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -925,7 +925,7 @@ impl fmt::Display for RelativeSchemeData { #[cfg(unix)] fn path_to_file_url_path(path: &Path) -> Result, ()> { - 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, ()> { #[cfg(unix)] fn file_url_path_to_pathbuf(path: &[String]) -> Result { use std::ffi::OsStr; - use std::os::unix::OsStrExt; + use std::os::unix::prelude::OsStrExt; use std::path::PathBuf; if path.is_empty() {