Dolda2000 GitWeb
/
kaka
/
rust-sdl-test.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fd8761
)
Allow dead code
author
Tomas Wenström
<tomas.wenstrom@gmail.com>
Sun, 24 Jan 2021 19:59:27 +0000
(20:59 +0100)
committer
Tomas Wenström
<tomas.wenstrom@gmail.com>
Sun, 24 Jan 2021 19:59:27 +0000
(20:59 +0100)
src/core/render.rs
patch
|
blob
|
blame
|
history
diff --git
a/src/core/render.rs
b/src/core/render.rs
index
7932d55
..
4d375d6
100644
(file)
--- 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)