From 0b034743086a20cfcd13a217d7855183cf18b245 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sat, 7 Aug 2021 13:59:45 -0400 Subject: [PATCH] Rename LEDStrip to LedStrip --- src/main.rs | 4 ++-- src/strip.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 15056b0..6a76594 100644 --- a/src/main.rs +++ b/src/main.rs @@ -34,13 +34,13 @@ mod ui; use errors::ProgramError; use std::sync::mpsc::channel; use std::thread; -use strip::{LEDStrip, Message}; +use strip::{LedStrip, Message}; use ui::console_ui_loop; fn main() -> Result<(), ProgramError> { let (tx, rx) = channel::(); let strip_handle = thread::spawn(move || -> Result<(), ProgramError> { - let mut strip = LEDStrip::new(strip::Config { + let mut strip = LedStrip::new(strip::Config { // I have 89 right now, but start off with 20 num_lights: 20, // Skip 14 lights diff --git a/src/strip.rs b/src/strip.rs index 6e38600..34d6656 100644 --- a/src/strip.rs +++ b/src/strip.rs @@ -37,13 +37,13 @@ pub enum Message { } #[allow(clippy::module_name_repetitions)] -pub struct LEDStrip { +pub struct LedStrip { pub adapter: Box, pub config: Config, pub pattern: Box, } -impl LEDStrip { +impl LedStrip { pub fn new(config: Config) -> Result { let adapter = Box::new( Ws28xxSpiAdapter::new("/dev/spidev0.0")