Skip to content

Commit 0be46ac

Browse files
committed
fix manager windows build warnings
1 parent bf4664e commit 0be46ac

File tree

1 file changed

+3
-7
lines changed
  • crates/shadowsocks-service/src/manager

1 file changed

+3
-7
lines changed

crates/shadowsocks-service/src/manager/server.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22
33
#[cfg(unix)]
44
use std::path::PathBuf;
5-
use std::{
6-
collections::{hash_map::Entry, HashMap},
7-
io,
8-
net::SocketAddr,
9-
sync::Arc,
10-
time::Duration,
11-
};
5+
use std::{collections::HashMap, io, net::SocketAddr, sync::Arc, time::Duration};
126

137
use log::{error, info, trace};
148
use shadowsocks::{
@@ -59,6 +53,7 @@ struct ServerInstance {
5953

6054
impl Drop for ServerInstance {
6155
fn drop(&mut self) {
56+
#[allow(irrefutable_let_patterns)]
6257
if let ServerInstanceMode::Builtin { ref abortable, .. } = self.mode {
6358
abortable.abort();
6459
}
@@ -504,6 +499,7 @@ impl Manager {
504499
#[cfg(unix)]
505500
async fn handle_stat(&self, stat: &StatRequest) {
506501
use log::warn;
502+
use std::collections::hash_map::Entry;
507503

508504
use crate::config::{Config, ConfigType};
509505

0 commit comments

Comments
 (0)