Skip to content

Commit

Permalink
Fixes clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon committed Jan 12, 2025
1 parent 971c4c1 commit f572d49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f572d49

Please sign in to comment.