From: Tomas Wenström Date: Sun, 24 Jan 2021 19:59:27 +0000 (+0100) Subject: Allow dead code X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=4a7f4e28535762dcc5357fcdc8030e512b5d06b7;p=kaka%2Frust-sdl-test.git Allow dead code --- 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)