Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Redox support #249

Merged
merged 1 commit into from Dec 11, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Add Redox support

  • Loading branch information
jackpot51 committed Nov 9, 2016
commit 0cf4805c393749b9990e5c88e84bd70e4b8c216f
@@ -1374,7 +1374,7 @@ impl serde::Deserialize for Url {
}
}

#[cfg(unix)]
#[cfg(any(unix, target_os = "redox"))]
fn path_to_file_url_segments(path: &Path, serialization: &mut String) -> Result<(), ()> {
use std::os::unix::prelude::OsStrExt;
if !path.is_absolute() {
@@ -1434,7 +1434,7 @@ fn path_to_file_url_segments_windows(path: &Path, serialization: &mut String) ->
Ok(())
}

#[cfg(unix)]
#[cfg(any(unix, target_os = "redox"))]
fn file_url_segments_to_pathbuf(segments: str::Split<char>) -> Result<PathBuf, ()> {
use std::ffi::OsStr;
use std::os::unix::prelude::OsStrExt;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.