summaryrefslogtreecommitdiffstats
path: root/examples/integration
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2023-09-20 15:52:41 +0200
committerLibravatar GitHub <noreply@github.com>2023-09-20 15:52:41 +0200
commit2f7ff1471d1f6119c769c77fa138a63e95b5d881 (patch)
tree83f20609fa20d534ef8bd32b3851cae03cbadbb2 /examples/integration
parente8b01eb5435500c4b4d3135dde3d9e5910aca89e (diff)
parent33d780f691829ecd32f3a218008fcb40e005deb4 (diff)
downloadiced-2f7ff1471d1f6119c769c77fa138a63e95b5d881.tar.gz
iced-2f7ff1471d1f6119c769c77fa138a63e95b5d881.tar.bz2
iced-2f7ff1471d1f6119c769c77fa138a63e95b5d881.zip
Merge pull request #2096 from iced-rs/fix/some-more-lints
Fix some `clippy::pedantic` lints
Diffstat (limited to 'examples/integration')
-rw-r--r--examples/integration/src/controls.rs2
-rw-r--r--examples/integration/src/main.rs2
-rw-r--r--examples/integration/src/scene.rs1
3 files changed, 2 insertions, 3 deletions
diff --git a/examples/integration/src/controls.rs b/examples/integration/src/controls.rs
index 14e53ede..4714c397 100644
--- a/examples/integration/src/controls.rs
+++ b/examples/integration/src/controls.rs
@@ -19,7 +19,7 @@ impl Controls {
pub fn new() -> Controls {
Controls {
background_color: Color::BLACK,
- text: Default::default(),
+ text: String::default(),
}
}
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,