Commit d53a479d authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui
Browse files

misc: fix cargo clippy complaints

parent 49e883b7
Pipeline #205522 failed with stage
in 44 seconds
......@@ -54,7 +54,7 @@ pub fn pick_color() -> zbus::Result<gdk::RGBA> {
.downcast_ref::<zvariant::Structure>()
.unwrap()
.fields()
.into_iter()
.iter()
.map(|c| *c.downcast_ref::<f64>().unwrap())
.collect::<Vec<f64>>();
......
use gettextrs::gettext;
use gtk::prelude::*;
use libhandy::prelude::*;
use pango;
use pangocairo;
use std::{cell::RefCell, rc::Rc};
struct ChartBarMarker {
......@@ -124,7 +122,7 @@ impl ChartBarWidget {
child_allocation.width = (block_width * self.value) as i32;
self.filled_container.size_allocate(&mut child_allocation);
self.filled_container.size_allocate(&child_allocation);
}
}
pub struct ContrastLevelBar {
......
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