@@ -287,7 +287,7 @@ impl TomlProfiles {
287
287
warnings. push ( "use `[profile.dev]` to configure debug builds" . to_string ( ) ) ;
288
288
}
289
289
290
- profile. validate ( & name, features, warnings) ?;
290
+ profile. validate ( name, features, warnings) ?;
291
291
}
292
292
Ok ( ( ) )
293
293
}
@@ -490,15 +490,15 @@ impl TomlProfile {
490
490
match & self . dir_name {
491
491
None => { }
492
492
Some ( dir_name) => {
493
- Self :: validate_name ( & dir_name, "dir-name" ) ?;
493
+ Self :: validate_name ( dir_name, "dir-name" ) ?;
494
494
}
495
495
}
496
496
497
497
// `inherits` validation
498
498
match & self . inherits {
499
499
None => { }
500
500
Some ( inherits) => {
501
- Self :: validate_name ( & inherits, "inherits" ) ?;
501
+ Self :: validate_name ( inherits, "inherits" ) ?;
502
502
}
503
503
}
504
504
@@ -581,31 +581,31 @@ impl TomlProfile {
581
581
}
582
582
583
583
if let Some ( v) = profile. codegen_units {
584
- self . codegen_units = Some ( v. clone ( ) ) ;
584
+ self . codegen_units = Some ( v) ;
585
585
}
586
586
587
587
if let Some ( v) = & profile. debug {
588
588
self . debug = Some ( v. clone ( ) ) ;
589
589
}
590
590
591
591
if let Some ( v) = profile. debug_assertions {
592
- self . debug_assertions = Some ( v. clone ( ) ) ;
592
+ self . debug_assertions = Some ( v) ;
593
593
}
594
594
595
595
if let Some ( v) = profile. rpath {
596
- self . rpath = Some ( v. clone ( ) ) ;
596
+ self . rpath = Some ( v) ;
597
597
}
598
598
599
599
if let Some ( v) = & profile. panic {
600
600
self . panic = Some ( v. clone ( ) ) ;
601
601
}
602
602
603
603
if let Some ( v) = profile. overflow_checks {
604
- self . overflow_checks = Some ( v. clone ( ) ) ;
604
+ self . overflow_checks = Some ( v) ;
605
605
}
606
606
607
607
if let Some ( v) = profile. incremental {
608
- self . incremental = Some ( v. clone ( ) ) ;
608
+ self . incremental = Some ( v) ;
609
609
}
610
610
611
611
if let Some ( v) = & profile. overrides {
0 commit comments