Skip to content

Commit 73417b1

Browse files
Inline format_args
Co-authored-by: Michael Goulet <[email protected]>
1 parent cab94d2 commit 73417b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_data_structures/src/profiling.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ pub fn print_time_passes_entry(
778778
"rss_start": start_rss,
779779
"rss_end": end_rss,
780780
});
781-
eprintln!("time: {}", json);
781+
eprintln!("time: {json}");
782782
return;
783783
}
784784
TimePassesFormat::Text => (),

compiler/rustc_macros/src/diagnostics/fluent.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub(crate) fn fluent_messages(input: proc_macro::TokenStream) -> proc_macro::Tok
100100
Diagnostic::spanned(
101101
resource_span,
102102
Level::Error,
103-
format!("could not open Fluent resource: {}", e),
103+
format!("could not open Fluent resource: {e}"),
104104
)
105105
.emit();
106106
return failed(&crate_name);

0 commit comments

Comments
 (0)