Commit b53b12ca authored by Joshua Peisach's avatar Joshua Peisach

src/widgets/paginator.rs: Simplify if statement using clippy

(cargo-clippy lint tool)
parent bddc139b
......@@ -76,7 +76,7 @@ impl PaginatorWidget {
let last_page = n_pages - 1.0;
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)
} else if (0.0 <= position) && (position <= forelast_page) {
(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