From 1e6b6fcec6452fc1482ecd6522c3ec77478a1603 Mon Sep 17 00:00:00 2001 From: Yandrik Date: Fri, 30 Dec 2022 18:04:59 +0100 Subject: [PATCH] refactor: nicer code --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8cc94a6..9b5fa13 100644 --- a/src/main.rs +++ b/src/main.rs @@ -229,7 +229,7 @@ fn draw_rotating_mesh(meshes: Vec) -> anyhow::Result<()> { thread::sleep(Duration::from_millis(10)); } - Ok(()) + unreachable!() } fn main() -> anyhow::Result<()> { @@ -304,6 +304,5 @@ fn main() -> anyhow::Result<()> { thing, ])?; - loop {} unreachable!() }