switch Drop to &mut self

This commit is contained in:
Daniel Micay
2013-09-16 21:18:07 -04:00
parent bc89ade401
commit 4e161a4d40
129 changed files with 192 additions and 203 deletions

View File

@@ -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)