From be50b34fe410352ebfcc35f8e32b542801d07918 Mon Sep 17 00:00:00 2001 From: Jakko Sikkar Date: Mon, 4 May 2015 22:32:20 +0300 Subject: [PATCH] fix for the "\src\lib.rs:997:5: 1005:6 error: the trait `core::marker::Sized` is not implemented for the type `[collections::string::String]` [E0277]" --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 66b9000b..dc552eb5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -994,7 +994,7 @@ fn file_url_path_to_pathbuf(path: &[String]) -> Result { return Err(()) } let mut string = prefix.to_string(); - for path_part in path[1..] { + for path_part in path.iter().skip(1) { string.push('\\'); // Currently non-unicode windows paths cannot be represented