Skip to content

Commit fbdb53d

Browse files
committed
1 parent 572a005 commit fbdb53d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/internal.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@ impl fmt::Debug for Slice<Path> {
349349
/// If alternate format is specified, e.g. `{:#?}`, the slice is assumed to
350350
/// be conventionally UTF-8 and converted to a [`String`] lossily with
351351
/// [`Path::to_string_lossy`].
352+
#[allow(
353+
clippy::unnecessary_debug_formatting,
354+
reason = "FPs in the lint: https://github.com/rust-lang/rust-clippy/issues/14952, https://github.com/rust-lang/rust-clippy/issues/14977"
355+
)]
352356
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
353357
if f.alternate() {
354358
write!(f, "{:?}", self.as_slice().to_string_lossy())

0 commit comments

Comments
 (0)