about summary refs log tree commit diff
path: root/src/tools/rustfmt/src/source_file.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/src/source_file.rs')
-rw-r--r--src/tools/rustfmt/src/source_file.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rustfmt/src/source_file.rs b/src/tools/rustfmt/src/source_file.rs
index 56d4ab40038..958f9b0154f 100644
--- a/src/tools/rustfmt/src/source_file.rs
+++ b/src/tools/rustfmt/src/source_file.rs
@@ -62,7 +62,7 @@ where
     fn ensure_real_path(filename: &FileName) -> &Path {
         match *filename {
             FileName::Real(ref path) => path,
-            _ => panic!("cannot format `{}` and emit to files", filename),
+            _ => panic!("cannot format `{filename}` and emit to files"),
         }
     }