From ef6c2954156b2b0cf4abfe583d8faaf546f4e7c4 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Mon, 3 Jun 2024 21:39:43 -0400 Subject: Removed toolchain config --- src/components.rs | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'src/components.rs') diff --git a/src/components.rs b/src/components.rs index 3179f0c..c1122d0 100644 --- a/src/components.rs +++ b/src/components.rs @@ -1,6 +1,6 @@ -use std::sync::{Mutex, Arc}; +use std::sync::{Arc, Mutex}; -use bevy::{prelude::*, render::extract_component::ExtractComponent, ecs::query::QueryItem}; +use bevy::{ecs::query::QueryItem, prelude::*, render::extract_component::ExtractComponent}; use crate::render_assets::FramebufferExtractSource; @@ -8,20 +8,16 @@ use crate::render_assets::FramebufferExtractSource; pub struct FramebufferExtractDestination(pub Arc>); impl ExtractComponent for FramebufferExtractDestination { - type QueryData = ( - &'static Self, - &'static Handle, - ); + type QueryData = (&'static Self, &'static Handle); type QueryFilter = (); type Out = (Self, Handle); - fn extract_component((destination, source_handle): QueryItem<'_, Self::QueryData>) -> Option { - Some(( - destination.clone(), - source_handle.clone(), - )) + fn extract_component( + (destination, source_handle): QueryItem<'_, Self::QueryData>, + ) -> Option { + Some((destination.clone(), source_handle.clone())) } } @@ -30,4 +26,3 @@ pub struct ExtractFramebufferBundle { pub source: Handle, pub dest: FramebufferExtractDestination, } - -- cgit v1.2.3