fix warnings

This commit is contained in:
Corwin Kuiper 2021-05-30 20:08:25 +01:00
parent 2b28199570
commit a98a0d0362

View file

@ -1,4 +1,4 @@
use crate::{display::object::AffineMatrixAttributes, Gba}; use crate::display::object::AffineMatrixAttributes;
#[allow(non_snake_case)] #[allow(non_snake_case)]
@ -113,6 +113,7 @@ pub fn affine_matrix(x_scale: i16, y_scale: i16, rotation: u16) -> AffineMatrixA
p_d: 0, p_d: 0,
}; };
#[allow(dead_code)]
struct Input { struct Input {
x_scale: i16, x_scale: i16,
y_scale: i16, y_scale: i16,
@ -138,7 +139,7 @@ pub fn affine_matrix(x_scale: i16, y_scale: i16, rotation: u16) -> AffineMatrixA
} }
#[test_case] #[test_case]
fn affine(_gba: &mut Gba) { fn affine(_gba: &mut crate::Gba) {
// expect identity matrix // expect identity matrix
let aff = affine_matrix(1 << 8, 1 << 8, 0); let aff = affine_matrix(1 << 8, 1 << 8, 0);
assert_eq!(aff.p_a, 1 << 8); assert_eq!(aff.p_a, 1 << 8);