Switch to using Prefix::Verbatim

This commit is contained in:
Jeremy Soller 2016-11-28 18:19:17 -07:00
parent 746222fd9d
commit 2ec21327f2
2 changed files with 4 additions and 6 deletions

View file

@ -24,7 +24,7 @@ pub fn is_verbatim_sep(b: u8) -> bool {
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::Scheme(OsStr::new(&path_str[..i])))
Some(Prefix::Verbatim(OsStr::new(&path_str[..i])))
} else {
None
}