File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -186,9 +186,7 @@ pub mod tests {
186186 // tar.gz format has extra handling, to support a multi-part extension
187187 let expected = format ! (
188188 "http://localhost/node/{}/{}/{}/tar.gz/node-v1.0.0.tar.gz" ,
189- NODE_DISTRO_OS ,
190- NODE_DISTRO_ARCH ,
191- version. to_string( )
189+ NODE_DISTRO_OS , NODE_DISTRO_ARCH , version
192190 ) ;
193191 assert_eq ! (
194192 hook. resolve( & version, "node-v1.0.0.tar.gz" )
@@ -199,9 +197,7 @@ pub mod tests {
199197 // zip is a standard extension
200198 let expected = format ! (
201199 "http://localhost/node/{}/{}/{}/zip/node-v1.0.0.zip" ,
202- NODE_DISTRO_OS ,
203- NODE_DISTRO_ARCH ,
204- version. to_string( )
200+ NODE_DISTRO_OS , NODE_DISTRO_ARCH , version
205201 ) ;
206202 assert_eq ! (
207203 hook. resolve( & version, "node-v1.0.0.zip" )
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ impl Ir {
9191
9292 let methods = self . field_names ( ) . map ( |field_name| {
9393 // Markdown-formatted field name for the doc comment.
94- let markdown_field_name = format ! ( "`{}`" , field_name. to_string ( ) ) ;
94+ let markdown_field_name = format ! ( "`{}`" , field_name) ;
9595 let markdown_field_name = LitStr :: new ( & markdown_field_name, field_name. span ( ) ) ;
9696
9797 // Use the field name's span for good duplicate-method-name error messages.
@@ -129,7 +129,7 @@ impl Ir {
129129 let all_names = dir_names. chain ( file_names) . chain ( exe_names) ;
130130 let all_inits = dir_inits. chain ( file_inits) . chain ( exe_inits) ;
131131
132- let markdown_struct_name = format ! ( "`{}`" , name. to_string ( ) ) ;
132+ let markdown_struct_name = format ! ( "`{}`" , name) ;
133133 let markdown_struct_name = LitStr :: new ( & markdown_struct_name, name. span ( ) ) ;
134134
135135 quote ! {
You can’t perform that action at this time.
0 commit comments