fixed warnings

This commit is contained in:
Y. T. Chung
2015-01-18 00:05:07 +08:00
parent 4fcab1ad8f
commit fb9e4d2dcb
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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 {
-2
View File
@@ -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 {
+1 -1
View File
@@ -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)
+2
View File
@@ -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;