Commit d74c838c authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

Merge branch 'master' into 'master'

src/widgets/paginator.rs: Simplify if statement using clippy See merge request GNOME/gnome-tour!43
parents bddc139b b53b12ca
...@@ -76,7 +76,7 @@ impl PaginatorWidget { ...@@ -76,7 +76,7 @@ impl PaginatorWidget {
let last_page = n_pages - 1.0; let last_page = n_pages - 1.0;
let (opacity_finish, opacity_previous, opacity_start, opacity_next) = let (opacity_finish, opacity_previous, opacity_start, opacity_next) =
if (0.0 <= position) && (position < 1.0) { if (0.0..1.0).contains(&position) {
(0.0, position, 1.0, position) (0.0, position, 1.0, position)
} else if (0.0 <= position) && (position <= forelast_page) { } else if (0.0 <= position) && (position <= forelast_page) {
(0.0, 1.0, 1f64 - position, 1.0) (0.0, 1.0, 1f64 - position, 1.0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment