fix clippy lints

This commit is contained in:
Corwin Kuiper 2021-10-04 20:56:28 +01:00
parent 94309a2518
commit df98f58c0e
2 changed files with 6 additions and 3 deletions

View file

@ -19,9 +19,11 @@ fn main() {
.output() .output()
.expect("failed to compile crt0.s"); .expect("failed to compile crt0.s");
if !out.status.success() { assert!(
panic!("{}", String::from_utf8_lossy(&out.stderr)); out.status.success(),
} "{}",
String::from_utf8_lossy(&out.stderr)
);
println!("cargo:rustc-link-search={}", out_dir); println!("cargo:rustc-link-search={}", out_dir);
} }

View file

@ -80,6 +80,7 @@ impl<'a> MapStorage<'a> {
/// The map background is the method of drawing game maps to the screen. It /// The map background is the method of drawing game maps to the screen. It
/// automatically handles copying the correct portion of a provided map to the /// automatically handles copying the correct portion of a provided map to the
/// assigned block depending on given coordinates. /// assigned block depending on given coordinates.
#[allow(dead_code)]
pub struct BackgroundRegular<'a> { pub struct BackgroundRegular<'a> {
background: u8, background: u8,
block: u8, block: u8,