diff options
| author | 2023-09-20 15:52:41 +0200 | |
|---|---|---|
| committer | 2023-09-20 15:52:41 +0200 | |
| commit | 2f7ff1471d1f6119c769c77fa138a63e95b5d881 (patch) | |
| tree | 83f20609fa20d534ef8bd32b3851cae03cbadbb2 /examples/sierpinski_triangle/src/main.rs | |
| parent | e8b01eb5435500c4b4d3135dde3d9e5910aca89e (diff) | |
| parent | 33d780f691829ecd32f3a218008fcb40e005deb4 (diff) | |
| download | iced-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/sierpinski_triangle/src/main.rs')
| -rw-r--r-- | examples/sierpinski_triangle/src/main.rs | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/examples/sierpinski_triangle/src/main.rs b/examples/sierpinski_triangle/src/main.rs index 885d3c63..ef935c33 100644 --- a/examples/sierpinski_triangle/src/main.rs +++ b/examples/sierpinski_triangle/src/main.rs @@ -108,10 +108,7 @@ impl canvas::Program<Message> for SierpinskiGraph {          bounds: Rectangle,          cursor: mouse::Cursor,      ) -> (event::Status, Option<Message>) { -        let cursor_position = if let Some(position) = cursor.position_in(bounds) -        { -            position -        } else { +        let Some(cursor_position) = cursor.position_in(bounds) else {              return (event::Status::Ignored, None);          }; | 
