@@ -84,7 +84,7 @@ impl ToStub for Module {
8484 . map ( |( ns, entries) | {
8585 let mut buf = String :: new ( ) ;
8686 if let Some ( ns) = ns {
87- writeln ! ( buf, "namespace {} {{" , ns ) ?;
87+ writeln ! ( buf, "namespace {ns } {{" ) ?;
8888 } else {
8989 writeln ! ( buf, "namespace {{" ) ?;
9090 }
@@ -183,7 +183,7 @@ impl ToStub for DocBlock {
183183 if !self . 0 . is_empty ( ) {
184184 writeln ! ( buf, "/**" ) ?;
185185 for comment in self . 0 . iter ( ) {
186- writeln ! ( buf, " *{}" , comment ) ?;
186+ writeln ! ( buf, " *{comment}" ) ?;
187187 }
188188 writeln ! ( buf, " */" ) ?;
189189 }
@@ -196,10 +196,10 @@ impl ToStub for Class {
196196 self . docs . fmt_stub ( buf) ?;
197197
198198 let ( _, name) = split_namespace ( self . name . as_ref ( ) ) ;
199- write ! ( buf, "class {} " , name ) ?;
199+ write ! ( buf, "class {name } " ) ?;
200200
201201 if let Option :: Some ( extends) = & self . extends {
202- write ! ( buf, "extends {} " , extends ) ?;
202+ write ! ( buf, "extends {extends } " ) ?;
203203 }
204204
205205 if !self . implements . is_empty ( ) {
@@ -249,7 +249,7 @@ impl ToStub for Property {
249249 }
250250 write ! ( buf, "${}" , self . name) ?;
251251 if let Option :: Some ( default) = & self . default {
252- write ! ( buf, " = {}" , default ) ?;
252+ write ! ( buf, " = {default}" ) ?;
253253 }
254254 writeln ! ( buf, ";" )
255255 }
@@ -311,7 +311,7 @@ impl ToStub for Constant {
311311
312312 write ! ( buf, "const {} = " , self . name) ?;
313313 if let Option :: Some ( value) = & self . value {
314- write ! ( buf, "{}" , value ) ?;
314+ write ! ( buf, "{value}" ) ?;
315315 } else {
316316 write ! ( buf, "null" ) ?;
317317 }
@@ -381,6 +381,7 @@ mod test {
381381
382382 #[ test]
383383 #[ cfg( not( windows) ) ]
384+ #[ allow( clippy:: uninlined_format_args) ]
384385 pub fn test_indent ( ) {
385386 use super :: indent;
386387 use crate :: describe:: stub:: NEW_LINE_SEPARATOR ;
0 commit comments