Skip to content

Commit 01404b7

Browse files
committed
Redox patches
1 parent 3851a94 commit 01404b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -2351,7 +2351,11 @@ fn file_url_segments_to_pathbuf(host: Option<&str>, segments: str::Split<char>)
23512351
return Err(());
23522352
}
23532353

2354-
let mut bytes = Vec::new();
2354+
let mut bytes = if cfg!(target_os = "redox") {
2355+
b"file:".to_vec()
2356+
} else {
2357+
Vec::new()
2358+
};
23552359
for segment in segments {
23562360
bytes.push(b'/');
23572361
bytes.extend(percent_decode(segment.as_bytes()));

0 commit comments

Comments
 (0)