From 59937aced5c3d6bd97edfb2d86d4ec70cae8e652 Mon Sep 17 00:00:00 2001 From: chyyran Date: Wed, 18 Sep 2024 00:48:50 -0400 Subject: [PATCH] fmt: cargo fmt --- librashader-capi/src/runtime/gl/filter_chain.rs | 4 +--- librashader-reflect/src/reflect/presets.rs | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/librashader-capi/src/runtime/gl/filter_chain.rs b/librashader-capi/src/runtime/gl/filter_chain.rs index 0e9eb36..6b0c54f 100644 --- a/librashader-capi/src/runtime/gl/filter_chain.rs +++ b/librashader-capi/src/runtime/gl/filter_chain.rs @@ -4,9 +4,7 @@ use crate::ctypes::{ use crate::error::{assert_non_null, assert_some_ptr, LibrashaderError}; use crate::ffi::extern_fn; use crate::LIBRASHADER_API_VERSION; -use librashader::runtime::gl::{ - FilterChain, FilterChainOptions, FrameOptions, GLImage, -}; +use librashader::runtime::gl::{FilterChain, FilterChainOptions, FrameOptions, GLImage}; use librashader::runtime::FilterChainParameters; use librashader::runtime::{Size, Viewport}; use std::ffi::CStr; diff --git a/librashader-reflect/src/reflect/presets.rs b/librashader-reflect/src/reflect/presets.rs index 1cbee0a..de57ca9 100644 --- a/librashader-reflect/src/reflect/presets.rs +++ b/librashader-reflect/src/reflect/presets.rs @@ -106,8 +106,18 @@ where .collect::)>, E>>()?; for (config, source, _) in &passes { - insert_pass_semantics(&mut uniform_semantics, &mut texture_semantics, config.alias.as_ref(), config.id as usize); - insert_pass_semantics(&mut uniform_semantics, &mut texture_semantics, source.name.as_ref(), config.id as usize); + insert_pass_semantics( + &mut uniform_semantics, + &mut texture_semantics, + config.alias.as_ref(), + config.id as usize, + ); + insert_pass_semantics( + &mut uniform_semantics, + &mut texture_semantics, + source.name.as_ref(), + config.id as usize, + ); } insert_lut_semantics(textures, &mut uniform_semantics, &mut texture_semantics);