diff --git a/doc/tutorial-ffi.md b/doc/tutorial-ffi.md index ceaf30bdb8f..186522f3fb9 100644 --- a/doc/tutorial-ffi.md +++ b/doc/tutorial-ffi.md @@ -153,7 +153,6 @@ use std::cast; use std::libc::{c_void, size_t, malloc, free}; use std::ptr; use std::unstable::intrinsics; -use std::util; // a wrapper around the handle returned by the foreign code pub struct Unique { @@ -186,7 +185,7 @@ pub impl Unique { impl Drop for Unique { fn finalize(&self) { unsafe { - let mut x = intrinsics::init(); // dummy value to swap in + let x = intrinsics::init(); // dummy value to swap in // moving the object out is needed to call the destructor ptr::replace_ptr(self.ptr, x); free(self.ptr as *c_void)