diff options
| author | LLLL Colonq <llll@colonq> | 2025-08-15 04:40:56 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-08-15 04:40:56 -0400 |
| commit | a7fea4499ed84a9cb62775ddc198e63ec62ddd5a (patch) | |
| tree | c7680f35002f5b01e3c783665a61db3ce7a92539 | |
| parent | 37f4825392902deec07e6bd471580f03ae394240 (diff) | |
Update
| -rw-r--r-- | crates/teleia/src/fig.rs | 6 | ||||
| -rw-r--r-- | crates/teleia/src/framebuffer.rs | 1 | ||||
| -rw-r--r-- | crates/teleia/src/level2d/tiled.rs | 2 | ||||
| -rw-r--r-- | crates/teleia/src/texture.rs | 2 |
4 files changed, 4 insertions, 7 deletions
diff --git a/crates/teleia/src/fig.rs b/crates/teleia/src/fig.rs index a507ab4..13b4773 100644 --- a/crates/teleia/src/fig.rs +++ b/crates/teleia/src/fig.rs @@ -23,8 +23,7 @@ impl SexpClient { } pub fn pump(&mut self) -> Option<SexpMessage> { match self.reader.read_line(&mut self.buf) { - Ok(l) => { - // log::info!("read line: {}", self.buf); + Ok(_l) => { let mv = lexpr::from_str(&self.buf); self.buf.clear(); match mv { @@ -40,9 +39,6 @@ impl SexpClient { } }, Err(e) if e.kind() == std::io::ErrorKind::WouldBlock => { - // if self.buf.len() > 0 { - // log::error!("error wouldblock: buf is {}", self.buf); - // } None }, Err(e) => panic!("IO error on message bus: {}", e), diff --git a/crates/teleia/src/framebuffer.rs b/crates/teleia/src/framebuffer.rs index f382611..b561dbe 100644 --- a/crates/teleia/src/framebuffer.rs +++ b/crates/teleia/src/framebuffer.rs @@ -1,6 +1,5 @@ use glow::HasContext; -use crate::Options; use crate::context; pub struct Framebuffer { diff --git a/crates/teleia/src/level2d/tiled.rs b/crates/teleia/src/level2d/tiled.rs index 466260a..9e5e4e7 100644 --- a/crates/teleia/src/level2d/tiled.rs +++ b/crates/teleia/src/level2d/tiled.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use std::collections::HashMap; use serde::Deserialize; use glow::HasContext; diff --git a/crates/teleia/src/texture.rs b/crates/teleia/src/texture.rs index 1682500..ab750c5 100644 --- a/crates/teleia/src/texture.rs +++ b/crates/teleia/src/texture.rs @@ -23,7 +23,7 @@ impl Texture { } pub fn new(ctx: &context::Context, bytes: &[u8]) -> Self { - let rgba = image::io::Reader::new(std::io::Cursor::new(bytes)) + let rgba = image::ImageReader::new(std::io::Cursor::new(bytes)) .with_guessed_format() .expect("failed to guess image format") .decode() |
