From 2bac1e7a9c710d6ad3e50a10463f758a1b5db40a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 12 Dec 2018 14:33:42 -0800 Subject: toolchain: Update to Rust 1.31.0 We updated the production toolchain from 1.30 to 1.31 in CL:1366446. This CL does the same upgrade for the local developer toolchain and Kokoro. The relevant changes are in rust-toolchain and kokoro/Dockerfile. The rest are from rustfmt. TEST=cargo fmt --all -- --check TEST=as described in kokoro/README.md Change-Id: I3b4913f3e237baa36c664b4953be360c09efffd4 Reviewed-on: https://chromium-review.googlesource.com/1374376 Commit-Ready: ChromeOS CL Exonerator Bot Tested-by: David Tolnay Reviewed-by: Zach Reizner --- msg_socket/tests/enum.rs | 3 ++- msg_socket/tests/struct.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'msg_socket') diff --git a/msg_socket/tests/enum.rs b/msg_socket/tests/enum.rs index d63cfc1..9134f6e 100644 --- a/msg_socket/tests/enum.rs +++ b/msg_socket/tests/enum.rs @@ -55,7 +55,8 @@ fn sock_send_recv_enum() { res.send(&Response::E { f0: 0x12, f1: 0x0f0f, - }).unwrap(); + }) + .unwrap(); match req.recv().unwrap() { Response::E { f0, f1 } => { assert_eq!(f0, 0x12); diff --git a/msg_socket/tests/struct.rs b/msg_socket/tests/struct.rs index ab97a6f..07cde3e 100644 --- a/msg_socket/tests/struct.rs +++ b/msg_socket/tests/struct.rs @@ -25,7 +25,8 @@ fn sock_send_recv_struct() { field0: 2, field1: e0, field2: 0xf0f0, - }).unwrap(); + }) + .unwrap(); let r = res.recv().unwrap(); assert_eq!(r.field0, 2); assert_eq!(r.field2, 0xf0f0); -- cgit 1.4.1