From 4a7f4e28535762dcc5357fcdc8030e512b5d06b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tomas=20Wenstr=C3=B6m?= Date: Sun, 24 Jan 2021 20:59:27 +0100 Subject: [PATCH] Allow dead code --- src/core/render.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/render.rs b/src/core/render.rs index 7932d55..4d375d6 100644 --- a/src/core/render.rs +++ b/src/core/render.rs @@ -21,6 +21,7 @@ impl Renderer { &mut self.canvas } + #[allow(dead_code)] pub fn viewport(&self) -> (u16, u16) { let vp = self.canvas.viewport(); (vp.width() as u16, vp.height() as u16) -- 2.11.0