about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorJeremy Stucki <jeremy@myelin.ch>2019-06-23 20:05:36 +0200
committerJeremy Stucki <stucki.jeremy@gmail.com>2019-07-03 10:01:02 +0200
commit80f4c49c1b4c7e02fd1ea61e9c09a97fec362d7e (patch)
treee234a15a7635add131fcccb2f3cd42a2f6a32251 /src/libstd
parent3cd4df70a58c73e22e0820f83b305f049b88f4db (diff)
downloadrust-80f4c49c1b4c7e02fd1ea61e9c09a97fec362d7e.tar.gz
rust-80f4c49c1b4c7e02fd1ea61e9c09a97fec362d7e.zip
Add missing lifetime specifier
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/sys/windows/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/path.rs b/src/libstd/sys/windows/path.rs
index 322a17ee43d..7eae28cb14f 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(path: &OsStr) -> Option<Prefix> {
+pub fn parse_prefix(path: &OsStr) -> Option<Prefix<'_>> {
     use crate::path::Prefix::*;
     unsafe {
         // The unsafety here stems from converting between &OsStr and &[u8]