From 85f63cbf5d532c7185f12b68772795665e44041f Mon Sep 17 00:00:00 2001 From: Avril Date: Sat, 8 May 2021 21:01:59 +0100 Subject: [PATCH] remove some unused imports --- src/ext/bytes.rs | 1 - src/service/command.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/ext/bytes.rs b/src/ext/bytes.rs index b0965e1..dd4b760 100644 --- a/src/ext/bytes.rs +++ b/src/ext/bytes.rs @@ -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()); diff --git a/src/service/command.rs b/src/service/command.rs index 982f4c4..5be3e98 100644 --- a/src/service/command.rs +++ b/src/service/command.rs @@ -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 { - use oneshot::error::TryRecvError; - self.resp.close(); self.resp.try_recv().ok().flatten() }