diff --git a/bindgen/codegen/mod.rs b/bindgen/codegen/mod.rs index b09edcec7e..b8a6da3cbc 100644 --- a/bindgen/codegen/mod.rs +++ b/bindgen/codegen/mod.rs @@ -278,7 +278,7 @@ fn format_attribute_tokens(attrs: &[TokenStream]) -> Vec { // Only insert the attribute if there are formatted comments if !comment.is_empty() { - attrs.insert(0, format!("#[doc = \"{}\"]", comment)); + attrs.insert(0, format!("#[doc = \"{comment}\"]")); } attrs