Update according the new nightly build.
[crypto_lab1.git] / lab1_rust / src / oracle_machine.rs
index dd0430d..8bf3933 100644 (file)
@@ -10,7 +10,7 @@ use end_point::EndPoint;
 /// May print some messages on stdout.
 pub fn decipher(address: &str, port: u16, original_xor_operand: &[u8, ..16], cipher_block: &[u8, ..16], variant: packet::Variant) -> Option<Vec<u8>> {
    let mut end_point = EndPoint::new(
-      match TcpStream::connect(address, port) {
+      match TcpStream::connect((address, port)) {
          Ok(s) => s,
          _ => {
             println!("Unable to connect to the oracle on [{}]:{}", address, port);