libstd: deny(elided_lifetimes_in_paths)

This commit is contained in:
Mazdak Farrokhzad
2019-03-01 09:34:11 +01:00
parent cee58fdc12
commit 379c380a60
85 changed files with 372 additions and 367 deletions

View File

@@ -19,7 +19,7 @@ pub fn is_verbatim_sep(b: u8) -> bool {
b == b'\\'
}
pub fn parse_prefix<'a>(path: &'a OsStr) -> Option<Prefix> {
pub fn parse_prefix<'a>(path: &'a OsStr) -> Option<Prefix<'a>> {
use crate::path::Prefix::*;
unsafe {
// The unsafety here stems from converting between &OsStr and &[u8]