diff options
author | HampusM <hampus@hampusmat.com> | 2025-03-30 22:58:28 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-03-30 22:58:28 +0200 |
commit | 88414e46f5a8c127d7a8e5613276913f2b1ad141 (patch) | |
tree | 9f144ef2fa3a3ce31cb7474f12aef3f0b0e89b52 /src/lib.rs | |
parent | f5a482faa1e4302e879533b9ce4e5a956af00cee (diff) |
fix: add missing FieldOwned Drop impl
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -826,6 +826,16 @@ impl FieldOwned<'_> } } +impl Drop for FieldOwned<'_> +{ + fn drop(&mut self) + { + unsafe { + (self.field_metadata.drop_in_place)(self.bytes.as_ptr()); + } + } +} + #[derive(Debug)] pub struct FieldSliceMut<'mv> { |