Skip to content

Commit

Permalink
let else
Browse files Browse the repository at this point in the history
  • Loading branch information
Elabajaba committed Feb 3, 2023
1 parent 94858ca commit 761a454
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ impl Node for ContrastAdaptiveSharpeningNode {
let sharpening_pipeline = world.resource::<ContrastAdaptiveSharpeningPipeline>();
let uniforms = world.resource::<ComponentUniforms<CASUniform>>();

let (target, pipeline) = match self.query.get_manual(world, view_entity) {
Ok(result) => result,
Err(_) => return Ok(()),
};
let Ok((target, pipeline)) = self.query.get_manual(world, view_entity) else { return Ok(()) };

let pipeline = pipeline_cache.get_render_pipeline(pipeline.0).unwrap();

Expand Down

0 comments on commit 761a454

Please sign in to comment.