@@ -375,7 +375,7 @@ impl TargetInfo {
375
375
suffix,
376
376
prefix : prefix. clone ( ) ,
377
377
flavor : FileFlavor :: DebugInfo ,
378
- crate_type : Some ( crate_type. clone ( ) ) ,
378
+ crate_type : Some ( crate_type) ,
379
379
// macOS tools like lldb use all sorts of magic to locate
380
380
// dSYM files. See https://lldb.llvm.org/use/symbols.html
381
381
// for some details. It seems like a `.dSYM` located next
@@ -389,7 +389,7 @@ impl TargetInfo {
389
389
suffix : ".pdb" . to_string ( ) ,
390
390
prefix : prefix. clone ( ) ,
391
391
flavor : FileFlavor :: DebugInfo ,
392
- crate_type : Some ( crate_type. clone ( ) ) ,
392
+ crate_type : Some ( crate_type) ,
393
393
// The absolute path to the pdb file is embedded in the
394
394
// executable. If the exe/pdb pair is moved to another
395
395
// machine, then debuggers will look in the same directory
@@ -466,7 +466,7 @@ impl TargetInfo {
466
466
} else {
467
467
FileFlavor :: Normal
468
468
} ;
469
- let file_types = self . file_types ( & crate_type, flavor, target_triple) ?;
469
+ let file_types = self . file_types ( crate_type, flavor, target_triple) ?;
470
470
match file_types {
471
471
Some ( types) => {
472
472
result. extend ( types) ;
0 commit comments