From 20aebd349a50331a8daa1ce74d9e759efd5c39b5 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sun, 3 Jul 2022 17:54:05 +0100 Subject: [PATCH] Provide an empty #[entry] in lib.rs --- agb/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agb/src/lib.rs b/agb/src/lib.rs index c14e79c3..1bb35687 100644 --- a/agb/src/lib.rs +++ b/agb/src/lib.rs @@ -365,7 +365,8 @@ pub mod test_runner { #[cfg(test)] #[entry] fn agb_test_main(gba: Gba) -> ! { - agb_start_tests(gba, test_main); + #[allow(clippy::empty_loop)] + loop {} // full implementation provided by the #[entry] } pub fn agb_start_tests(gba: Gba, test_main: impl Fn()) -> ! {