From df98f58c0e78d8f9fbb31020e832099dae341ce5 Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Mon, 4 Oct 2021 20:56:28 +0100 Subject: [PATCH] fix clippy lints --- agb/build.rs | 8 +++++--- agb/src/display/background.rs | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/agb/build.rs b/agb/build.rs index 8a63cb42..46e138d9 100644 --- a/agb/build.rs +++ b/agb/build.rs @@ -19,9 +19,11 @@ fn main() { .output() .expect("failed to compile crt0.s"); - if !out.status.success() { - panic!("{}", String::from_utf8_lossy(&out.stderr)); - } + assert!( + out.status.success(), + "{}", + String::from_utf8_lossy(&out.stderr) + ); println!("cargo:rustc-link-search={}", out_dir); } diff --git a/agb/src/display/background.rs b/agb/src/display/background.rs index 05a0d404..fbe01412 100644 --- a/agb/src/display/background.rs +++ b/agb/src/display/background.rs @@ -80,6 +80,7 @@ impl<'a> MapStorage<'a> { /// 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 /// assigned block depending on given coordinates. +#[allow(dead_code)] pub struct BackgroundRegular<'a> { background: u8, block: u8,