@@ -67,20 +67,10 @@ impl GodotXmlDocs {
6767 if let Some ( property_name) = node. attribute ( "name" ) {
6868 if !property_name. contains ( '/' ) {
6969 if node. has_attribute ( "setter" ) {
70- self . add_fn (
71- class,
72- & format ! ( "set_{}" , property_name) ,
73- desc,
74- & [ ] ,
75- ) ;
70+ self . add_fn ( class, & format ! ( "set_{property_name}" ) , desc, & [ ] ) ;
7671 }
7772 if node. has_attribute ( "getter" ) {
78- self . add_fn (
79- class,
80- & format ! ( "get_{}" , property_name) ,
81- desc,
82- & [ ] ,
83- ) ;
73+ self . add_fn ( class, & format ! ( "get_{property_name}" ) , desc, & [ ] ) ;
8474 }
8575 }
8676 }
@@ -187,10 +177,7 @@ impl GodotXmlDocs {
187177
188178 // Info for GDScript blocks
189179 let godot_doc = if godot_doc. contains ( "[codeblock]" ) {
190- format ! (
191- "_Sample code is GDScript unless otherwise noted._\n \n {}" ,
192- godot_doc
193- )
180+ format ! ( "_Sample code is GDScript unless otherwise noted._\n \n {godot_doc}" )
194181 } else {
195182 godot_doc
196183 } ;
@@ -213,9 +200,9 @@ impl GodotXmlDocs {
213200 let text = & c[ 2 ] ;
214201
215202 if text. is_empty ( ) {
216- format ! ( "<{url}>" , url = url )
203+ format ! ( "<{url}>" )
217204 } else {
218- format ! ( "[{text}]({url})" , text = text , url = url )
205+ format ! ( "[{text}]({url})" )
219206 }
220207 } ) ;
221208
@@ -247,11 +234,7 @@ impl GodotXmlDocs {
247234 let godot_ty = & c[ 2 ] ;
248235 let rust_ty = Self :: translate_type ( godot_ty) ;
249236
250- format ! (
251- "[`{godot_ty}`][{rust_ty}]" ,
252- godot_ty = godot_ty,
253- rust_ty = rust_ty
254- )
237+ format ! ( "[`{godot_ty}`][{rust_ty}]" )
255238 } ) ;
256239
257240 godot_doc. to_string ( )
0 commit comments