Clean up some clippy warnings.

This commit is contained in:
2021-10-14 20:36:19 -07:00
parent e319dda2a8
commit fe630bb29d
2 changed files with 3 additions and 2 deletions

View File

@@ -65,8 +65,8 @@ impl TestingStream {
TestingStream { TestingStream {
address: self.address.clone(), address: self.address.clone(),
port: self.port, port: self.port,
read_side: self.write_side.clone(), read_side: self.write_side,
write_side: self.read_side.clone(), write_side: self.read_side,
} }
} }
} }

View File

@@ -102,6 +102,7 @@ impl<N: Networklike + Send + 'static> SOCKSv5Server<N> {
} }
} }
#[allow(clippy::upper_case_acronyms)]
enum ChosenMethod { enum ChosenMethod {
TLS(fn(GenericStream) -> Option<GenericStream>), TLS(fn(GenericStream) -> Option<GenericStream>),
Password(fn(&str, &str) -> bool), Password(fn(&str, &str) -> bool),