diff options
author | 2023-01-28 18:34:14 +0100 | |
---|---|---|
committer | 2023-01-28 18:34:14 +0100 | |
commit | cffffff2ddffc6e8d4e430c94ba9d89e4acda44c (patch) | |
tree | 2057c57df0c36096d1c3cd6334bc16e767f8169e /examples/integration_wgpu | |
parent | 818ae4977a36c30a61492f85afa96e261c5d7167 (diff) | |
parent | 42b1bfe66d2407901c1ae640f80ce9e0d3c64b60 (diff) | |
download | iced-cffffff2ddffc6e8d4e430c94ba9d89e4acda44c.tar.gz iced-cffffff2ddffc6e8d4e430c94ba9d89e4acda44c.tar.bz2 iced-cffffff2ddffc6e8d4e430c94ba9d89e4acda44c.zip |
Merge pull request #1681 from pop-os/fix-lints
Fix Clippy Lints
Diffstat (limited to 'examples/integration_wgpu')
-rw-r--r-- | examples/integration_wgpu/src/controls.rs | 2 | ||||
-rw-r--r-- | examples/integration_wgpu/src/main.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/integration_wgpu/src/controls.rs b/examples/integration_wgpu/src/controls.rs index 6c41738c..92300a45 100644 --- a/examples/integration_wgpu/src/controls.rs +++ b/examples/integration_wgpu/src/controls.rs @@ -96,7 +96,7 @@ impl Program for Controls { ) .push(sliders) .push( - Text::new(format!("{:?}", background_color)) + Text::new(format!("{background_color:?}")) .size(14) .style(Color::WHITE), ) diff --git a/examples/integration_wgpu/src/main.rs b/examples/integration_wgpu/src/main.rs index 70f9a48b..2a56b6fa 100644 --- a/examples/integration_wgpu/src/main.rs +++ b/examples/integration_wgpu/src/main.rs @@ -274,7 +274,7 @@ pub fn main() { } Err(error) => match error { wgpu::SurfaceError::OutOfMemory => { - panic!("Swapchain error: {}. Rendering cannot continue.", error) + panic!("Swapchain error: {error}. Rendering cannot continue.") } _ => { // Try rendering again next frame. |