aboutsummaryrefslogtreecommitdiff
path: root/ctr-std/src/sys/unix/path.rs
diff options
context:
space:
mode:
authorValentin <[email protected]>2018-06-15 18:57:24 +0200
committerFenrirWolf <[email protected]>2018-06-15 10:57:24 -0600
commitf2a90174bb36b9ad528e863ab34c02ebce002b02 (patch)
tree959e8d67883d3a89e179b3549b1f30d28e51a87c /ctr-std/src/sys/unix/path.rs
parentMerge pull request #68 from linouxis9/master (diff)
downloadctru-rs-f2a90174bb36b9ad528e863ab34c02ebce002b02.tar.xz
ctru-rs-f2a90174bb36b9ad528e863ab34c02ebce002b02.zip
Update for latest nightly 2018-06-09 (#70)
* Update for latest nightly 2018-06-09 * We now have a proper horizon os and sys modules in libstd
Diffstat (limited to 'ctr-std/src/sys/unix/path.rs')
-rw-r--r--ctr-std/src/sys/unix/path.rs14
1 files changed, 3 insertions, 11 deletions
diff --git a/ctr-std/src/sys/unix/path.rs b/ctr-std/src/sys/unix/path.rs
index d96473b..bf9af7a 100644
--- a/ctr-std/src/sys/unix/path.rs
+++ b/ctr-std/src/sys/unix/path.rs
@@ -1,4 +1,4 @@
-// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
@@ -21,16 +21,8 @@ pub fn is_verbatim_sep(b: u8) -> bool {
b == b'/'
}
-pub fn parse_prefix(path: &OsStr) -> Option<Prefix> {
- if let Some(path_str) = path.to_str() {
- if let Some(i) = path_str.find(':') {
- Some(Prefix::Verbatim(OsStr::new(&path_str[..i])))
- } else {
- None
- }
- } else {
- None
- }
+pub fn parse_prefix(_: &OsStr) -> Option<Prefix> {
+ None
}
pub const MAIN_SEP_STR: &'static str = "/";