about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-04-09 23:29:39 +0200
committerGitHub <noreply@github.com>2023-04-09 23:29:39 +0200
commit73417b1e1503ad6a3eeae93cd12ecdc727f002c0 (patch)
tree8eb461b17c430bb4d1f7271556ba7c13006fab50
parentcab94d29ffc4929a181cbfdb744f87deab467cc1 (diff)
downloadrust-73417b1e1503ad6a3eeae93cd12ecdc727f002c0.tar.gz
rust-73417b1e1503ad6a3eeae93cd12ecdc727f002c0.zip
Inline format_args
Co-authored-by: Michael Goulet <michael@errs.io>
-rw-r--r--compiler/rustc_data_structures/src/profiling.rs2
-rw-r--r--compiler/rustc_macros/src/diagnostics/fluent.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_data_structures/src/profiling.rs b/compiler/rustc_data_structures/src/profiling.rs
index 92924111a00..1ed584eafad 100644
--- a/compiler/rustc_data_structures/src/profiling.rs
+++ b/compiler/rustc_data_structures/src/profiling.rs
@@ -778,7 +778,7 @@ pub fn print_time_passes_entry(
                 "rss_start": start_rss,
                 "rss_end": end_rss,
             });
-            eprintln!("time: {}", json);
+            eprintln!("time: {json}");
             return;
         }
         TimePassesFormat::Text => (),
diff --git a/compiler/rustc_macros/src/diagnostics/fluent.rs b/compiler/rustc_macros/src/diagnostics/fluent.rs
index 493ec5a9944..607d51f5608 100644
--- a/compiler/rustc_macros/src/diagnostics/fluent.rs
+++ b/compiler/rustc_macros/src/diagnostics/fluent.rs
@@ -100,7 +100,7 @@ pub(crate) fn fluent_messages(input: proc_macro::TokenStream) -> proc_macro::Tok
             Diagnostic::spanned(
                 resource_span,
                 Level::Error,
-                format!("could not open Fluent resource: {}", e),
+                format!("could not open Fluent resource: {e}"),
             )
             .emit();
             return failed(&crate_name);