Skip to content

Commit c5cd12f

Browse files
authored
Update rrt0 and remove the empty loop (#45)
* Update rrt0 and remove the empty loop - Allows the rrt0 start function to panic when main returns - Fixes undefined behavior - See: rust-lang/rust#28728 * Fix link in doc comment
1 parent 2f447b4 commit c5cd12f

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/hello-ipl3font/src/main.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,4 @@ fn main() {
1818

1919
ipl3font::draw_str_centered(WHITE, "Hello, world!");
2020
vi::swap_buffer();
21-
22-
#[allow(clippy::empty_loop)]
23-
loop {}
2421
}

examples/n64lib/src/ipl3font.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! IPL3 font renderer.
22
//!
33
//! Draws strings using the font embedded in the official Nintendo IPL3 bootcode.
4-
//! See: https://github.com/PeterLemon/N64/blob/master/BOOTCODE/IPL3Font.asm
4+
//! See: <https://github.com/PeterLemon/N64/blob/master/BOOTCODE/IPL3Font.asm>
55
66
use crate::vi;
77

0 commit comments

Comments
 (0)