Skip to content

Commit

Permalink
use default where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
IceSentry committed Apr 24, 2023
1 parent 806ba7b commit a74e0a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_core_pipeline/src/tonemapping/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ pub struct TonemappingNode {
last_tonemapping: Mutex<Option<Tonemapping>>,
}

impl FromWorld for TonemappingNode {
fn from_world(_world: &mut World) -> Self {
impl Default for TonemappingNode {
fn default() -> Self {
Self {
cached_bind_group: Mutex::new(None),
last_tonemapping: Mutex::new(None),
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_core_pipeline/src/upscaling/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ pub struct UpscalingNode {
cached_texture_bind_group: Mutex<Option<(TextureViewId, BindGroup)>>,
}

impl FromWorld for UpscalingNode {
fn from_world(_world: &mut World) -> Self {
impl Default for UpscalingNode {
fn default() -> Self {
Self {
cached_texture_bind_group: Mutex::new(None),
}
Expand Down

0 comments on commit a74e0a0

Please sign in to comment.