@@ -94,7 +94,7 @@ impl Combiner {
9494 let pkg_name =
9595 input_tarball. trim_end_matches ( & format ! ( ".tar.{}" , compression. extension( ) ) ) ;
9696 let pkg_name = Path :: new ( pkg_name) . file_name ( ) . unwrap ( ) ;
97- let pkg_dir = Path :: new ( & self . work_dir ) . join ( & pkg_name) ;
97+ let pkg_dir = Path :: new ( & self . work_dir ) . join ( pkg_name) ;
9898
9999 // Verify the version number.
100100 let mut version = String :: new ( ) ;
@@ -114,9 +114,9 @@ impl Combiner {
114114 // All we need to do is copy the component directory. We could
115115 // move it, but rustbuild wants to reuse the unpacked package
116116 // dir for OS-specific installers on macOS and Windows.
117- let component_dir = package_dir. join ( & component) ;
117+ let component_dir = package_dir. join ( component) ;
118118 create_dir ( & component_dir) ?;
119- copy_recursive ( & pkg_dir. join ( & component) , & component_dir) ?;
119+ copy_recursive ( & pkg_dir. join ( component) , & component_dir) ?;
120120
121121 // Merge the component name.
122122 writeln ! ( & components, "{}" , component) . context ( "failed to write new components" ) ?;
@@ -158,7 +158,7 @@ impl Combiner {
158158 . input ( self . package_name )
159159 . output ( path_to_str ( & output) ?. into ( ) )
160160 . compression_profile ( self . compression_profile )
161- . compression_formats ( self . compression_formats . clone ( ) ) ;
161+ . compression_formats ( self . compression_formats ) ;
162162 tarballer. run ( ) ?;
163163
164164 Ok ( ( ) )
0 commit comments