Skip to content

Commit 236b999

Browse files
Minor cleanup
Signed-off-by: Luca Della Vedova <[email protected]>
1 parent f7aa5c0 commit 236b999

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

rclrs/src/dynamic_message.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ impl DynamicMessage {
474474
unsafe { std::slice::from_raw_parts_mut(dest_ptr, std::mem::size_of::<T>()) };
475475
// This creates a shallow copy, with ownership of the "deep" (or inner) parts moving
476476
// into the destination.
477-
dest_slice.copy_from_slice(&*self.storage);
477+
dest_slice.copy_from_slice(&self.storage);
478478
// Don't run the fini function on the src data anymore, because the inner parts would be
479479
// double-freed by dst and src.
480480
self.needs_fini = false;

rclrs/src/dynamic_message/message_structure.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,21 +1068,5 @@ mod tests {
10681068
);
10691069
}
10701070
}
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);
10871071
}
10881072
}

0 commit comments

Comments
 (0)