mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
Remove unused lifetimes.
This commit is contained in:
@@ -530,7 +530,7 @@ fn from(s: &'a OsStr) -> Box<OsStr> {
|
||||
}
|
||||
|
||||
#[stable(feature = "os_string_from_box", since = "1.18.0")]
|
||||
impl<'a> From<Box<OsStr>> for OsString {
|
||||
impl From<Box<OsStr>> for OsString {
|
||||
fn from(boxed: Box<OsStr>) -> OsString {
|
||||
boxed.into_os_string()
|
||||
}
|
||||
|
||||
+1
-1
@@ -1342,7 +1342,7 @@ fn from(path: &'a Path) -> Box<Path> {
|
||||
}
|
||||
|
||||
#[stable(feature = "path_buf_from_box", since = "1.18.0")]
|
||||
impl<'a> From<Box<Path>> for PathBuf {
|
||||
impl From<Box<Path>> for PathBuf {
|
||||
fn from(boxed: Box<Path>) -> PathBuf {
|
||||
boxed.into_path_buf()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user