Turn Cells into drawing

This commit is contained in:
Joscha 2024-03-30 12:24:59 +01:00
parent d04a697d51
commit 9b1df02819
3 changed files with 21 additions and 20 deletions

View file

@ -16,7 +16,7 @@ use tokio::sync::mpsc;
use crate::printer::Printer;
pub use calendar::CalendarDrawing;
pub use self::{calendar::CalendarDrawing, cells::CellsDrawing};
#[derive(Default)]
pub struct Context {
@ -37,7 +37,6 @@ pub enum Command {
Image { image: RgbaImage, bright: bool },
Photo { image: RgbaImage, title: String },
ChatMessage { username: String, content: String },
Cells { rule: u8, rows: u32, scale: u32 },
}
impl Command {
@ -87,7 +86,6 @@ impl Drawer {
Command::ChatMessage { username, content } => {
self.on_chat_message(username, content)?
}
Command::Cells { rule, rows, scale } => self.draw_cells(rule, rows, scale)?,
}
Ok(())
}