From 063e23d6de81054d8ff98b82dbca74989ae795e2 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Fri, 4 Oct 2024 19:52:21 +0200 Subject: [PATCH] fix: remove unessecary print --- Cargo.toml | 3 +++ src/main.rs | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 82031fe..dadd75d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,6 +14,9 @@ tokio-test = "*" [profile.dev] opt-level = 1 +[profile.dev.package."*"] +opt-level = 3 + [profile.release] lto = "fat" codegen-units = 1 diff --git a/src/main.rs b/src/main.rs index 47f30ac..97f69a2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -190,7 +190,7 @@ where None => return Err(Error::from(ErrorKind::InvalidInput)), Some(color) => color.to_be_bytes(), }; - match_parser!(parser: self.parser => parser.unparse(Response::GetPixel(x,y,[color[0], color[1], color[2]]), &mut self.writer).await); + match_parser!(parser: self.parser => parser.unparse(Response::GetPixel(x,y,[color[0], color[1], color[2]]), &mut self.writer).await?); self.writer.flush().await?; return Ok(()); @@ -208,7 +208,6 @@ where Color::RGBA32(r, g, b, a) => u32::from_be_bytes([r, g, b, a]), Color::W8(w) => u32::from_be_bytes([w, w, w, 0xff]), }; - println!("setting pixel {},{} to {}", x, y, c); set_pixel_rgba(self.grids.as_ref(), canvas, x, y, c); increment_counter(); return Ok(());