Skip to content

Commit

Permalink
Update rrt0 and remove the empty loop (#45)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
parasyte committed Dec 28, 2020
1 parent 2f447b4 commit c5cd12f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions examples/hello-ipl3font/src/main.rs
Expand Up @@ -18,7 +18,4 @@ fn main() {

ipl3font::draw_str_centered(WHITE, "Hello, world!");
vi::swap_buffer();

#[allow(clippy::empty_loop)]
loop {}
}
2 changes: 1 addition & 1 deletion examples/n64lib/src/ipl3font.rs
@@ -1,7 +1,7 @@
//! IPL3 font renderer.
//!
//! Draws strings using the font embedded in the official Nintendo IPL3 bootcode.
//! See: https://github.com/PeterLemon/N64/blob/master/BOOTCODE/IPL3Font.asm
//! See: <https://github.com/PeterLemon/N64/blob/master/BOOTCODE/IPL3Font.asm>

use crate::vi;

Expand Down

0 comments on commit c5cd12f

Please sign in to comment.