diff options
| author | Jeremy Stucki <jeremy@myelin.ch> | 2019-06-21 17:46:41 +0200 |
|---|---|---|
| committer | Jeremy Stucki <stucki.jeremy@gmail.com> | 2019-07-03 10:00:23 +0200 |
| commit | 87e8613fd41e7a4237a146cbe49835bb88295df6 (patch) | |
| tree | 830a58d6762de2f51b9bb81ec8375b4c1419cd7c /src/libstd/sys/windows/path.rs | |
| parent | 8301de16dafc81a3b5d94aa0707ad83bdb56a599 (diff) | |
| download | rust-87e8613fd41e7a4237a146cbe49835bb88295df6.tar.gz rust-87e8613fd41e7a4237a146cbe49835bb88295df6.zip | |
Remove needless lifetimes
Diffstat (limited to 'src/libstd/sys/windows/path.rs')
| -rw-r--r-- | src/libstd/sys/windows/path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/path.rs b/src/libstd/sys/windows/path.rs index f3178a5e9e6..322a17ee43d 100644 --- a/src/libstd/sys/windows/path.rs +++ b/src/libstd/sys/windows/path.rs @@ -19,7 +19,7 @@ pub fn is_verbatim_sep(b: u8) -> bool { b == b'\\' } -pub fn parse_prefix<'a>(path: &'a OsStr) -> Option<Prefix<'a>> { +pub fn parse_prefix(path: &OsStr) -> Option<Prefix> { use crate::path::Prefix::*; unsafe { // The unsafety here stems from converting between &OsStr and &[u8] |
