diff options
author | eug-vs <eugene@eug-vs.xyz> | 2024-05-18 21:47:51 +0200 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2024-05-18 21:47:51 +0200 |
commit | b6fcd2b3ad1e84197867de13c783eba60fe465ba (patch) | |
tree | 38b3cd2a9e5eeda3b9c7c0bd431b291bf0690847 | |
parent | aa04af2eb5b5e93e4f33e6878ef4af83ac472c04 (diff) | |
download | pistol-b6fcd2b3ad1e84197867de13c783eba60fe465ba.tar.gz |
refactor: use loop syntax
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index d733fb3..3f4dd4a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,7 +43,7 @@ fn main() { let mut time = 0.0; - while true { + loop { clear(); flushinp(); @@ -124,6 +124,4 @@ fn main() { renderer.camera.direction = -renderer.camera.direction; } } - - endwin(); } |