Skip to content

Commit d721733

Browse files
committed
[#1312] Use drop_in_place for backwards compatibility
1 parent 998e68e commit d721733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iceoryx2-bb/container/src/static_option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl<T: Hash> Hash for StaticOption<T> {
107107
impl<T> Drop for StaticOption<T> {
108108
fn drop(&mut self) {
109109
if self.is_some() {
110-
unsafe { self.data.assume_init_drop() };
110+
unsafe { core::ptr::drop_in_place(self.data.as_mut_ptr()) };
111111
}
112112
}
113113
}

0 commit comments

Comments
 (0)