Fix clippy::manual_let_else

This commit is contained in:
Héctor Ramón Jiménez 2023-09-20 05:30:08 +02:00
parent 1019d1e518
commit f8f1a86344
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
7 changed files with 15 additions and 24 deletions

View file

@ -256,7 +256,7 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
{
// We clear the frame
let mut render_pass = scene.clear(
let mut render_pass = Scene::clear(
&view,
&mut encoder,
program.background_color(),

View file

@ -16,7 +16,6 @@ impl Scene {
}
pub fn clear<'a>(
&self,
target: &'a wgpu::TextureView,
encoder: &'a mut wgpu::CommandEncoder,
background_color: Color,