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 --- gpu_buffer/src/lib.rs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'gpu_buffer/src') diff --git a/gpu_buffer/src/lib.rs b/gpu_buffer/src/lib.rs index ad8dd63..49f346d 100644 --- a/gpu_buffer/src/lib.rs +++ b/gpu_buffer/src/lib.rs @@ -782,7 +782,8 @@ mod tests { 512, Format::new(b'X', b'R', b'2', b'4'), Flags::empty().use_scanout(true), - ).expect("failed to create buffer"); + ) + .expect("failed to create buffer"); assert_eq!(bo.width(), 1024); assert_eq!(bo.height(), 512); @@ -801,7 +802,8 @@ mod tests { 1024, Format::new(b'X', b'R', b'2', b'4'), Flags::empty().use_scanout(true), - ).expect("failed to create buffer"); + ) + .expect("failed to create buffer"); bo.export_plane_fd(0).expect("failed to export plane"); } @@ -816,7 +818,8 @@ mod tests { 1024, Format::new(b'X', b'R', b'2', b'4'), Flags::empty().use_scanout(true).use_linear(true), - ).expect("failed to create buffer"); + ) + .expect("failed to create buffer"); let mut dst: Vec = Vec::new(); dst.resize((bo.stride() * bo.height()) as usize, 0x4A); let dst_len = dst.len() as u64; @@ -830,7 +833,8 @@ mod tests { [dst.as_mut_slice().get_slice(0, dst_len).unwrap()] .iter() .cloned(), - ).expect("failed to read bo"); + ) + .expect("failed to read bo"); bo.read_to_volatile( 0, 0, @@ -838,7 +842,8 @@ mod tests { 1024, 0, dst.as_mut_slice().get_slice(0, dst_len).unwrap(), - ).expect("failed to read bo"); + ) + .expect("failed to read bo"); assert!(dst.iter().all(|&x| x == 0x4A)); } } -- cgit 1.4.1