Skip to content

Commit 05755ae

Browse files
committed
Remove the unused code
The newest cargo fmt can detect unused code more accurate. Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
1 parent 4a493e1 commit 05755ae

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/asynchronous/client.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use std::sync::atomic::{AtomicU32, Ordering};
1111
use std::sync::{Arc, Mutex};
1212

1313
use async_trait::async_trait;
14-
use nix::unistd::close;
1514
use tokio::{self, sync::mpsc, task};
1615

1716
use crate::common::client_connect;
@@ -162,19 +161,6 @@ impl Client {
162161
}
163162
}
164163

165-
struct ClientClose {
166-
fd: RawFd,
167-
close_fd: RawFd,
168-
}
169-
170-
impl Drop for ClientClose {
171-
fn drop(&mut self) {
172-
close(self.close_fd).unwrap();
173-
close(self.fd).unwrap();
174-
trace!("All client is droped");
175-
}
176-
}
177-
178164
#[derive(Debug)]
179165
struct ClientBuilder {
180166
rx: Option<MessageReceiver>,

0 commit comments

Comments
 (0)