From 621cd48e5d3eee30021e709961864dc8aaf33b24 Mon Sep 17 00:00:00 2001 From: Sylvester Hesp Date: Mon, 22 Aug 2022 16:31:07 +0200 Subject: [PATCH] Fixed linter --- crates/spirv-std/macros/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/spirv-std/macros/src/lib.rs b/crates/spirv-std/macros/src/lib.rs index 831de325e6..b1b2e7f4ad 100644 --- a/crates/spirv-std/macros/src/lib.rs +++ b/crates/spirv-std/macros/src/lib.rs @@ -78,6 +78,7 @@ use proc_macro2::{Delimiter, Group, Ident, Span, TokenTree}; use syn::{punctuated::Punctuated, spanned::Spanned, ItemFn, Token}; use quote::ToTokens; +use std::fmt::Write; /// A macro for creating SPIR-V `OpTypeImage` types. Always produces a /// `spirv_std::image::Image<...>` type. @@ -570,7 +571,7 @@ fn debug_printf_inner(input: DebugPrintfInput) -> TokenStream { { let ident = quote::format_ident!("_{}", i); - variable_idents.push_str(&format!("%{} ", ident)); + let _ = write!(variable_idents, "%{} ", ident); let assert_fn = match format_argument { FormatType::Scalar { ty } => {