Skip to content

Commit f572d49

Browse files
committed
Fixes clippy
1 parent 971c4c1 commit f572d49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl<'a> IntoIterator for &'a Path {
9595
/// Provides [`core::fmt::Display`] implementation to print [`Path`].
9696
struct Display<'a>(&'a Path);
9797

98-
impl<'a> core::fmt::Display for Display<'a> {
98+
impl core::fmt::Display for Display<'_> {
9999
fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
100100
for (i, n) in self.0.into_iter().enumerate() {
101101
if i != 0 {

src/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl ToOwned for EfiStr {
9797
/// Provides [`core::fmt::Display`] to display [`EfiStr`] lossy.
9898
struct Display<'a>(&'a EfiStr);
9999

100-
impl<'a> core::fmt::Display for Display<'a> {
100+
impl core::fmt::Display for Display<'_> {
101101
fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
102102
// SAFETY: EfiStr guarantee to have NUL at the end.
103103
let mut ptr = self.0.as_ptr();

0 commit comments

Comments
 (0)