Skip to content

Commit 6707e25

Browse files
Fix lifetime lints on the beta channel
1 parent c89d42c commit 6707e25

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/dir_entry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl<'a> DirEntryName<'a> {
7878
/// characters will be replaced with '�'.
7979
///
8080
/// [`Display`]: core::fmt::Display
81-
pub fn display(&self) -> BytesDisplay {
81+
pub fn display(&self) -> BytesDisplay<'_> {
8282
BytesDisplay(self.0)
8383
}
8484
}

src/label.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl Label {
5656
/// Null bytes are not included.
5757
///
5858
/// [`Display`]: core::fmt::Display
59-
pub fn display(&self) -> BytesDisplay {
59+
pub fn display(&self) -> BytesDisplay<'_> {
6060
BytesDisplay(self.as_bytes_up_to_first_null())
6161
}
6262
}

src/path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ impl PathBuf {
281281

282282
/// Borrow as a `Path`.
283283
#[must_use]
284-
pub fn as_path(&self) -> Path {
284+
pub fn as_path(&self) -> Path<'_> {
285285
Path(&self.0)
286286
}
287287

@@ -296,7 +296,7 @@ impl PathBuf {
296296
/// characters will be replaced with '�'.
297297
///
298298
/// [`Display`]: core::fmt::Display
299-
pub fn display(&self) -> BytesDisplay {
299+
pub fn display(&self) -> BytesDisplay<'_> {
300300
BytesDisplay(&self.0)
301301
}
302302

0 commit comments

Comments
 (0)