fix warnings and make clippy happy

This commit is contained in:
Marc Planard 2023-06-07 18:25:33 +02:00
parent ad3b3803ce
commit 22d007d938
4 changed files with 11 additions and 10 deletions

View file

@ -5,10 +5,10 @@
use helios_dac::{NativeHeliosDac, NativeHeliosDacController};
use helios_dac::{
// Coordinate,
Color,
// Color,
DeviceStatus,
Frame,
Point as HeliosPoint,
// Point as HeliosPoint,
};
use crate::conf::HeliosConf;
use crate::device::{Device, Status};
@ -35,11 +35,11 @@ impl HeliosDevice {
impl Device for HeliosDevice {
fn status(&self) -> Status {
return Status {
Status {
active: true,
last_traced_at: "now".to_string(),
properties: vec!["foo".to_string()],
};
}
}
fn draw(&self,
@ -49,7 +49,7 @@ impl Device for HeliosDevice {
while let Ok(DeviceStatus::NotReady) = self.dac.status() {}
let points: Vec<helios_dac::Point> = line.into_iter().map(|p| p.into()).collect();
let frame = Frame::new(speed, points);
let _frame = Frame::new(speed, points);
Ok(())
}

View file

@ -2,7 +2,7 @@ use crate::point::Point;
mod helios;
use crate::conf::{Conf, DacFamily, EtherDreamConf, HeliosConf};
use crate::conf::{Conf, DacFamily, /*EtherDreamConf, HeliosConf*/};
use crate::device::helios::HeliosDevice;
use crate::errors::LJResult;