switch Drop to &mut self
This commit is contained in:
@@ -26,7 +26,7 @@ use result::*;
|
||||
pub struct DynamicLibrary { priv handle: *libc::c_void }
|
||||
|
||||
impl Drop for DynamicLibrary {
|
||||
fn drop(&self) {
|
||||
fn drop(&mut self) {
|
||||
match do dl::check_for_errors_in {
|
||||
unsafe {
|
||||
dl::close(self.handle)
|
||||
|
||||
Reference in New Issue
Block a user