Fix clippy::manual_let_else
This commit is contained in:
parent
1019d1e518
commit
f8f1a86344
7 changed files with 15 additions and 24 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ impl Scene {
|
|||
}
|
||||
|
||||
pub fn clear<'a>(
|
||||
&self,
|
||||
target: &'a wgpu::TextureView,
|
||||
encoder: &'a mut wgpu::CommandEncoder,
|
||||
background_color: Color,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue