mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-07 00:13:33 +00:00
fixed warnings
This commit is contained in:
@@ -242,7 +242,7 @@ impl OpenSSLCrypto {
|
||||
|
||||
debug_assert!(iv.len() >= cipher_type.block_size());
|
||||
debug_assert!(key.len() == cipher_type.key_size());
|
||||
let mut evp_ctx = ffi::EVP_CIPHER_CTX_new();
|
||||
let evp_ctx = ffi::EVP_CIPHER_CTX_new();
|
||||
assert!(!evp_ctx.is_null());
|
||||
|
||||
let op = match mode {
|
||||
|
||||
@@ -26,8 +26,6 @@ use std::io::net::ip::IpAddr;
|
||||
|
||||
use collect::LruCache;
|
||||
|
||||
use config::DEFAULT_DNS_CACHE_CAPACITY;
|
||||
|
||||
const TASK_POOL_SIZE: usize = 4;
|
||||
|
||||
struct DnsLruCache {
|
||||
|
||||
@@ -121,7 +121,7 @@ impl TcpRelayServer {
|
||||
);
|
||||
|
||||
info!("Connecting to {}", addr);
|
||||
let mut remote_stream = match addr {
|
||||
let remote_stream = match addr {
|
||||
Address::SocketAddress(ip, port) => {
|
||||
try_result!(TcpStream::connect_timeout(SocketAddr {ip: ip, port: port}, Duration::seconds(30)),
|
||||
prefix: format!("Unable to connect {}:", addr)
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
#![allow(dead_code)]
|
||||
|
||||
use std::io::{IoResult, IoError, IoErrorKind};
|
||||
use std::cmp;
|
||||
use std::slice;
|
||||
|
||||
Reference in New Issue
Block a user