Fix clippy error

This commit is contained in:
lynskylate
2019-08-26 01:08:12 +08:00
parent b4335dc049
commit 1e1248090e

View File

@@ -237,7 +237,7 @@ impl SocketRef {
return Err(vm.new_exception(error_type, e.to_string()));
}
};
TcpStream::connect_timeout(&sock_addr, duration.clone())
TcpStream::connect_timeout(&sock_addr, *duration)
} else {
TcpStream::connect(address_string)
};