diff options
author | 2023-09-20 05:30:08 +0200 | |
---|---|---|
committer | 2023-09-20 05:30:08 +0200 | |
commit | f8f1a8634402a5eb4275ff0814d03a3104fea65a (patch) | |
tree | 5308dbe0dbdae527ac704dddbd64b0cbfbc29579 /examples/integration | |
parent | 1019d1e518d8ffe760142ccd5ff33d077434c8b9 (diff) | |
download | iced-f8f1a8634402a5eb4275ff0814d03a3104fea65a.tar.gz iced-f8f1a8634402a5eb4275ff0814d03a3104fea65a.tar.bz2 iced-f8f1a8634402a5eb4275ff0814d03a3104fea65a.zip |
Fix `clippy::manual_let_else`
Diffstat (limited to 'examples/integration')
-rw-r--r-- | examples/integration/src/main.rs | 2 | ||||
-rw-r--r-- | examples/integration/src/scene.rs | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs index 243297b2..4415fefa 100644 --- a/examples/integration/src/main.rs +++ b/examples/integration/src/main.rs @@ -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(), diff --git a/examples/integration/src/scene.rs b/examples/integration/src/scene.rs index 90c7efbf..01808f40 100644 --- a/examples/integration/src/scene.rs +++ b/examples/integration/src/scene.rs @@ -16,7 +16,6 @@ impl Scene { } pub fn clear<'a>( - &self, target: &'a wgpu::TextureView, encoder: &'a mut wgpu::CommandEncoder, background_color: Color, |