diff --git a/examples/calibration.rs b/examples/calibration.rs index c2a9852..59ac73e 100644 --- a/examples/calibration.rs +++ b/examples/calibration.rs @@ -1,5 +1,4 @@ mod resources; -use std::mem::size_of; use resources::tui::SledTerminalDisplay; @@ -7,7 +6,6 @@ use glam::Vec2; use sled::{color::Rgb, Sled, SledError}; fn main() -> Result<(), SledError> { - print!("{}", size_of::()); let mut sled = Sled::new("./examples/resources/config.toml")?; let mut display = SledTerminalDisplay::start("Calibration", sled.domain()); @@ -22,4 +20,3 @@ fn main() -> Result<(), SledError> { display.refresh().unwrap(); Ok(()) } - diff --git a/examples/quirky_trail.rs b/examples/quirky_trail.rs index 9ce6afa..7db3391 100644 --- a/examples/quirky_trail.rs +++ b/examples/quirky_trail.rs @@ -2,21 +2,21 @@ mod drivers; use drivers::quirky_trail; mod resources; -use resources::tui::SledTerminalDisplay; +// use resources::tui::SledTerminalDisplay; use sled::{scheduler::Scheduler, Sled}; fn main() { let sled = Sled::new("./examples/resources/config.toml").unwrap(); - let mut display = SledTerminalDisplay::start("Quirky Trail", sled.domain()); + // let mut display = SledTerminalDisplay::start("Quirky Trail", sled.domain()); let mut driver = quirky_trail::build_driver(); driver.mount(sled); let mut scheduler = Scheduler::fixed_hz(500.0); scheduler.loop_until_err(|| { driver.step(); - display.leds = driver.read_colors_and_positions(); - display.refresh()?; + // display.leds = driver.read_colors_and_positions(); + // display.refresh()?; Ok(()) }); } diff --git a/src/driver/buffers.rs b/src/driver/buffers.rs index c0bdf46..5c1273b 100644 --- a/src/driver/buffers.rs +++ b/src/driver/buffers.rs @@ -162,8 +162,6 @@ fn deref_option(option: Option<&T>) -> Option { } } -trait TypedIndex {} - impl std::ops::Index<&str> for BufferContainer { type Output = Vec;