From 9139ebfd95880f565743afc32c740564f1010073 Mon Sep 17 00:00:00 2001 From: Mac O'Brien Date: Sat, 18 May 2019 16:09:12 -0500 Subject: [PATCH] Formatting pass --- ash/src/extensions/khr/surface.rs | 2 +- examples/src/lib.rs | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ash/src/extensions/khr/surface.rs b/ash/src/extensions/khr/surface.rs index a01eb6a..03e4867 100644 --- a/ash/src/extensions/khr/surface.rs +++ b/ash/src/extensions/khr/surface.rs @@ -45,7 +45,7 @@ impl Surface { match err_code { vk::Result::SUCCESS => Ok(b > 0), - _ => Err(err_code) + _ => Err(err_code), } } diff --git a/examples/src/lib.rs b/examples/src/lib.rs index b97c6f7..c329db8 100644 --- a/examples/src/lib.rs +++ b/examples/src/lib.rs @@ -378,11 +378,13 @@ impl ExampleBase { .filter_map(|(index, ref info)| { let supports_graphic_and_surface = info.queue_flags.contains(vk::QueueFlags::GRAPHICS) - && surface_loader.get_physical_device_surface_support( - *pdevice, - index as u32, - surface, - ).unwrap(); + && surface_loader + .get_physical_device_surface_support( + *pdevice, + index as u32, + surface, + ) + .unwrap(); match supports_graphic_and_surface { true => Some((*pdevice, index)), _ => None,