From c059e7c566b0a64fe7bf0939a3e80b4e84eb7019 Mon Sep 17 00:00:00 2001 From: chyyran Date: Sun, 15 Jan 2023 18:21:01 -0500 Subject: [PATCH] fmt: run cargo fmt --- librashader-preprocess/src/lib.rs | 5 ++--- .../src/hello_triangle/mod.rs | 20 +++++++++++++------ librashader-runtime/src/binding.rs | 6 +++--- librashader/src/lib.rs | 8 +++----- 4 files changed, 22 insertions(+), 17 deletions(-) diff --git a/librashader-preprocess/src/lib.rs b/librashader-preprocess/src/lib.rs index 45326ff..7adf0c8 100644 --- a/librashader-preprocess/src/lib.rs +++ b/librashader-preprocess/src/lib.rs @@ -6,8 +6,8 @@ mod stage; use crate::include::read_source; pub use error::*; use librashader_common::ImageFormat; -use std::path::Path; use rustc_hash::FxHashMap; +use std::path::Path; /// The source file for a single shader pass. #[derive(Debug, Clone, PartialEq)] @@ -72,8 +72,7 @@ pub(crate) fn load_shader_source(path: impl AsRef) -> Result>, PreprocessError> = preset .shaders .iter() - .map(|s| ShaderSource::load(&s.name).map(|s| - s.parameters.into_values() - .collect())) + .map(|s| ShaderSource::load(&s.name).map(|s| s.parameters.into_values().collect())) .into_iter() .collect(); let iters = iters?;