From f572d491dfb284ec8f2fef10a901b8f48811e516 Mon Sep 17 00:00:00 2001 From: Putta Khunchalee Date: Sun, 12 Jan 2025 17:04:00 +0700 Subject: [PATCH] Fixes clippy --- src/path.rs | 2 +- src/string.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/path.rs b/src/path.rs index 01e847f..22642ad 100644 --- a/src/path.rs +++ b/src/path.rs @@ -95,7 +95,7 @@ impl<'a> IntoIterator for &'a Path { /// Provides [`core::fmt::Display`] implementation to print [`Path`]. struct Display<'a>(&'a Path); -impl<'a> core::fmt::Display for Display<'a> { +impl core::fmt::Display for Display<'_> { fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result { for (i, n) in self.0.into_iter().enumerate() { if i != 0 { diff --git a/src/string.rs b/src/string.rs index e6756bc..c9027ca 100644 --- a/src/string.rs +++ b/src/string.rs @@ -97,7 +97,7 @@ impl ToOwned for EfiStr { /// Provides [`core::fmt::Display`] to display [`EfiStr`] lossy. struct Display<'a>(&'a EfiStr); -impl<'a> core::fmt::Display for Display<'a> { +impl core::fmt::Display for Display<'_> { fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result { // SAFETY: EfiStr guarantee to have NUL at the end. let mut ptr = self.0.as_ptr();