From b6fcd2b3ad1e84197867de13c783eba60fe465ba Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 18 May 2024 21:47:51 +0200 Subject: refactor: use loop syntax --- src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 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(); } -- cgit v1.2.3