File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -474,7 +474,7 @@ impl DynamicMessage {
474
474
unsafe { std:: slice:: from_raw_parts_mut ( dest_ptr, std:: mem:: size_of :: < T > ( ) ) } ;
475
475
// This creates a shallow copy, with ownership of the "deep" (or inner) parts moving
476
476
// into the destination.
477
- dest_slice. copy_from_slice ( & * self . storage ) ;
477
+ dest_slice. copy_from_slice ( & self . storage ) ;
478
478
// Don't run the fini function on the src data anymore, because the inner parts would be
479
479
// double-freed by dst and src.
480
480
self . needs_fini = false ;
Original file line number Diff line number Diff line change @@ -1068,21 +1068,5 @@ mod tests {
1068
1068
) ;
1069
1069
}
1070
1070
}
1071
-
1072
- // Explicitly drop to avoid clippy warnings
1073
- drop ( arrays_structure) ;
1074
- drop ( builtins_structure) ;
1075
- drop ( duration_structure) ;
1076
- drop ( empty_structure) ;
1077
- drop ( time_structure) ;
1078
- drop ( basic_types_structure) ;
1079
- drop ( bounded_sequences_structure) ;
1080
- drop ( constants_structure) ;
1081
- drop ( multi_nested_structure) ;
1082
- drop ( nested_structure) ;
1083
- drop ( defaults_structure) ;
1084
- drop ( strings_structure) ;
1085
- drop ( wstrings_structure) ;
1086
- drop ( unbounded_sequences_structure) ;
1087
1071
}
1088
1072
}
You can’t perform that action at this time.
0 commit comments