Skip to content

Commit

Permalink
Make PathDisplay Display impl consistent with other Display impls
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 2, 2023
1 parent 7566a29 commit 8245799
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/display.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::fmt::Display;
use std::fmt::{self, Display};
use std::path::{Path, PathBuf};

#[doc(hidden)]
Expand Down Expand Up @@ -49,7 +49,7 @@ impl PathDisplay {

impl Display for PathDisplay {
#[inline]
fn fmt(&self, fmtr: &mut std::fmt::Formatter) -> std::fmt::Result {
self.0.display().fmt(fmtr)
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
self.0.display().fmt(formatter)
}
}

0 comments on commit 8245799

Please sign in to comment.