We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 572a005 commit fbdb53dCopy full SHA for fbdb53d
src/internal.rs
@@ -349,6 +349,10 @@ impl fmt::Debug for Slice<Path> {
349
/// If alternate format is specified, e.g. `{:#?}`, the slice is assumed to
350
/// be conventionally UTF-8 and converted to a [`String`] lossily with
351
/// [`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
+ )]
356
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
357
if f.alternate() {
358
write!(f, "{:?}", self.as_slice().to_string_lossy())
0 commit comments