Merge pull request #115 from corwinkuiper/fix-clippy-for-backgrounds

fix clippy lints
This commit is contained in:
Corwin 2021-10-04 20:59:19 +01:00 committed by GitHub
commit cea4df395f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -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);
}

View file

@ -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,