Skip to content

Commit e4a9c5b

Browse files
committed
Fix formatting
1 parent a16c91d commit e4a9c5b

File tree

1 file changed

+3
-3
lines changed
  • crates/spirv-std/macros/src

1 file changed

+3
-3
lines changed

crates/spirv-std/macros/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,11 +613,11 @@ fn debug_printf_inner(input: DebugPrintfInput) -> TokenStream {
613613
.into_iter()
614614
.collect::<proc_macro2::TokenStream>();
615615
let op_loads = op_loads.into_iter().collect::<proc_macro2::TokenStream>();
616-
// Escapes the '{' and '}' characters in the format string.
616+
// Escapes the '{' and '}' characters in the format string.
617617
// Since the `asm!` macro expects '{' '}' to surround its arguments, we have to use '{{' and '}}' instead.
618618
// The `asm!` macro will then later turn them back into '{' and '}'.
619-
let format_string = format_string.replace('{',"{{").replace('}',"}}");
620-
619+
let format_string = format_string.replace('{', "{{").replace('}', "}}");
620+
621621
let op_string = format!("%string = OpString {format_string:?}");
622622

623623
let output = quote::quote! {

0 commit comments

Comments
 (0)