diff --git a/librashader-runtime-gl/src/filter_pass.rs b/librashader-runtime-gl/src/filter_pass.rs index 16a4bf7..d3d852e 100644 --- a/librashader-runtime-gl/src/filter_pass.rs +++ b/librashader-runtime-gl/src/filter_pass.rs @@ -6,9 +6,7 @@ use librashader_reflect::reflect::ShaderReflection; use librashader_common::{ImageFormat, Size, Viewport}; use librashader_preprocess::ShaderSource; use librashader_presets::ShaderPassConfig; -use librashader_reflect::reflect::semantics::{ - MemberOffset, TextureBinding, UniformBinding, -}; +use librashader_reflect::reflect::semantics::{MemberOffset, TextureBinding, UniformBinding}; use librashader_runtime::binding::{BindSemantics, ContextOffset, TextureInput}; use rustc_hash::FxHashMap; diff --git a/librashader-runtime-vk/src/filter_pass.rs b/librashader-runtime-vk/src/filter_pass.rs index 20d926b..f0893e3 100644 --- a/librashader-runtime-vk/src/filter_pass.rs +++ b/librashader-runtime-vk/src/filter_pass.rs @@ -14,9 +14,7 @@ use librashader_reflect::reflect::semantics::{ }; use librashader_reflect::reflect::ShaderReflection; use librashader_runtime::binding::{BindSemantics, TextureInput}; -use librashader_runtime::uniforms::{ - UniformStorage, UniformStorageAccess, -}; +use librashader_runtime::uniforms::{UniformStorage, UniformStorageAccess}; use rustc_hash::FxHashMap; use std::sync::Arc; diff --git a/librashader-runtime-vk/src/hello_triangle/framebuffer.rs b/librashader-runtime-vk/src/hello_triangle/framebuffer.rs index 33a8082..46dc564 100644 --- a/librashader-runtime-vk/src/hello_triangle/framebuffer.rs +++ b/librashader-runtime-vk/src/hello_triangle/framebuffer.rs @@ -1,4 +1,3 @@ - use ash::prelude::VkResult; use ash::vk; diff --git a/librashader-runtime-vk/src/hello_triangle/mod.rs b/librashader-runtime-vk/src/hello_triangle/mod.rs index 4aa27b2..c1ab28f 100644 --- a/librashader-runtime-vk/src/hello_triangle/mod.rs +++ b/librashader-runtime-vk/src/hello_triangle/mod.rs @@ -8,7 +8,7 @@ mod swapchain; mod syncobjects; pub mod vulkan_base; -use crate::filter_chain::{FilterChainVulkan}; +use crate::filter_chain::FilterChainVulkan; use crate::hello_triangle::command::VulkanCommandPool; use crate::hello_triangle::framebuffer::VulkanFramebuffer; use crate::hello_triangle::pipeline::VulkanPipeline; diff --git a/librashader-runtime-vk/src/hello_triangle/swapchain.rs b/librashader-runtime-vk/src/hello_triangle/swapchain.rs index 59cc849..d52351b 100644 --- a/librashader-runtime-vk/src/hello_triangle/swapchain.rs +++ b/librashader-runtime-vk/src/hello_triangle/swapchain.rs @@ -4,7 +4,7 @@ use crate::util::find_vulkan_memory_type; use crate::vulkan_primitives::VulkanImageMemory; use ash::prelude::VkResult; use ash::vk; -use ash::vk::{Extent3D}; +use ash::vk::Extent3D; use std::sync::Arc; diff --git a/librashader-runtime-vk/src/hello_triangle/vulkan_base.rs b/librashader-runtime-vk/src/hello_triangle/vulkan_base.rs index 2f1f9c4..0ec2ae8 100644 --- a/librashader-runtime-vk/src/hello_triangle/vulkan_base.rs +++ b/librashader-runtime-vk/src/hello_triangle/vulkan_base.rs @@ -1,14 +1,12 @@ use ash::vk; - - use crate::error::FilterChainError; use crate::filter_chain::VulkanObjects; use crate::hello_triangle::debug::VulkanDebug; use crate::hello_triangle::physicaldevice::{find_queue_family, pick_physical_device}; use ash::prelude::VkResult; -use std::ffi::{CStr}; +use std::ffi::CStr; use std::sync::Arc; const WINDOW_TITLE: &[u8] = b"librashader Vulkan\0"; diff --git a/librashader-runtime-vk/src/lib.rs b/librashader-runtime-vk/src/lib.rs index 743330b..2c7c8bb 100644 --- a/librashader-runtime-vk/src/lib.rs +++ b/librashader-runtime-vk/src/lib.rs @@ -29,7 +29,7 @@ pub mod options; #[cfg(test)] mod tests { - + use crate::filter_chain::FilterChainVulkan; use crate::hello_triangle::vulkan_base::VulkanBase; diff --git a/librashader-runtime-vk/src/vulkan_primitives.rs b/librashader-runtime-vk/src/vulkan_primitives.rs index dfcc4f6..348cf47 100644 --- a/librashader-runtime-vk/src/vulkan_primitives.rs +++ b/librashader-runtime-vk/src/vulkan_primitives.rs @@ -22,11 +22,7 @@ impl VulkanImageMemory { } pub fn bind(&self, image: &vk::Image) -> error::Result<()> { - unsafe { - Ok(self - .device - .bind_image_memory(*image, self.handle, 0)?) - } + unsafe { Ok(self.device.bind_image_memory(*image, self.handle, 0)?) } } }