musikr: remove unsound file_ref drop impl

This commit is contained in:
Alexander Capehart 2025-02-19 10:47:00 -07:00
parent ca169a9354
commit f4a760e3b6
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -52,14 +52,3 @@ impl<'io> FileRef<'io> {
file_this.map(|this| File::new(this))
}
}
impl<'a> Drop for FileRef<'a> {
fn drop(&mut self) {
// First drop the file, since it has a pointer to the stream.
// Then drop the stream
unsafe {
std::ptr::drop_in_place(&mut self.this);
std::ptr::drop_in_place(&mut self.stream);
}
}
}