From d01b2bf8b8db82822f613d73651b9827bf108b8f Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Mon, 4 Mar 2024 12:28:19 +0900 Subject: [PATCH] `cargo fmt` TODO: Rest of https://vulkan-tutorial.com/Drawing_a_triangle/Setup/Validation_layers --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index afddcaa..f30543e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,10 +45,7 @@ impl VulkanApp { let app_title = CString::new("Vulkan").unwrap(); unsafe { ffi::glfwInit(); - ffi::glfwWindowHint( - ffi::GLFW_CLIENT_API as i32, - ffi::GLFW_NO_API as i32, - ); + ffi::glfwWindowHint(ffi::GLFW_CLIENT_API as i32, ffi::GLFW_NO_API as i32); ffi::glfwWindowHint(ffi::GLFW_RESIZABLE as i32, ffi::GLFW_FALSE as i32); self.window = ffi::glfwCreateWindow( WINDOW_WIDTH, @@ -137,7 +134,10 @@ impl VulkanApp { ); unsafe { - ffi::vkEnumerateInstanceLayerProperties(std::ptr::addr_of_mut!(layer_count), layers.as_mut_ptr()); + ffi::vkEnumerateInstanceLayerProperties( + std::ptr::addr_of_mut!(layer_count), + layers.as_mut_ptr(), + ); } for layer_name in VALIDATION_LAYERS {