diff options
author | Silas Bartha <[email protected]> | 2024-06-03 21:39:43 -0400 |
---|---|---|
committer | Silas Bartha <[email protected]> | 2024-06-03 21:39:43 -0400 |
commit | ef6c2954156b2b0cf4abfe583d8faaf546f4e7c4 (patch) | |
tree | f5da21c83771023d55036ad94ee52d8db992ffbd /src/components.rs | |
parent | 0ac133c0c396c8b75892cb6e43a52ad973046e2d (diff) |
Removed toolchain config
Diffstat (limited to 'src/components.rs')
-rw-r--r-- | src/components.rs | 19 |
1 files changed, 7 insertions, 12 deletions
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<Mutex<Image>>); impl ExtractComponent for FramebufferExtractDestination { - type QueryData = ( - &'static Self, - &'static Handle<FramebufferExtractSource>, - ); + type QueryData = (&'static Self, &'static Handle<FramebufferExtractSource>); type QueryFilter = (); type Out = (Self, Handle<FramebufferExtractSource>); - fn extract_component((destination, source_handle): QueryItem<'_, Self::QueryData>) -> Option<Self::Out> { - Some(( - destination.clone(), - source_handle.clone(), - )) + fn extract_component( + (destination, source_handle): QueryItem<'_, Self::QueryData>, + ) -> Option<Self::Out> { + Some((destination.clone(), source_handle.clone())) } } @@ -30,4 +26,3 @@ pub struct ExtractFramebufferBundle { pub source: Handle<FramebufferExtractSource>, pub dest: FramebufferExtractDestination, } - |