remove some unused imports

new
Avril 4 years ago
parent 8ca16772c6
commit 85f63cbf5d
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -8,7 +8,6 @@ use std::ffi::c_void;
/// Essentially `explicit_bzero()`.
#[inline(never)]
pub fn explicit_clear(buffer : &mut[u8]) {
use std::ffi::c_void;
unsafe {
std::ptr::write_bytes(buffer.as_mut_ptr() as * mut c_void, 0, buffer.len());

@ -67,8 +67,6 @@ impl Command
/// Dispose of this `Command`, returning any `Response` that might've already been sent.
#[inline] pub fn close(mut self) -> Option<Response>
{
use oneshot::error::TryRecvError;
self.resp.close();
self.resp.try_recv().ok().flatten()
}

Loading…
Cancel
Save