Skip to content

Commit 382c0eb

Browse files
Rollup merge of #42127 - clarcharr:lifetimes, r=Mark-Simulacrum
Remove unused lifetimes. This was a typo that made it onto master. Noted by @dtolnay in #42127. Also note #41960 which suggests warning these.
2 parents 950e426 + 6119f98 commit 382c0eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libstd/ffi/os_str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ impl<'a> From<&'a OsStr> for Box<OsStr> {
530530
}
531531

532532
#[stable(feature = "os_string_from_box", since = "1.18.0")]
533-
impl<'a> From<Box<OsStr>> for OsString {
533+
impl From<Box<OsStr>> for OsString {
534534
fn from(boxed: Box<OsStr>) -> OsString {
535535
boxed.into_os_string()
536536
}

src/libstd/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ impl<'a> From<&'a Path> for Box<Path> {
13421342
}
13431343

13441344
#[stable(feature = "path_buf_from_box", since = "1.18.0")]
1345-
impl<'a> From<Box<Path>> for PathBuf {
1345+
impl From<Box<Path>> for PathBuf {
13461346
fn from(boxed: Box<Path>) -> PathBuf {
13471347
boxed.into_path_buf()
13481348
}

0 commit comments

Comments
 (0)