mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Merge pull request #194 from gwilymk/fix-clippy-error
Fix clippy errors
This commit is contained in:
commit
ba7d5cf4c4
|
@ -9,6 +9,9 @@ impl Palette16 {
|
|||
Palette16 { colours }
|
||||
}
|
||||
|
||||
// Clippy bug: claims that index is only used in recursion. I can't reproduce in
|
||||
// other examples, even just copy pasting this struct and impl into a blank project :/
|
||||
#[allow(clippy::only_used_in_recursion)]
|
||||
pub fn update_colour(&mut self, index: usize, colour: u16) {
|
||||
self.colours[index] = colour;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use core::arch::asm;
|
||||
|
||||
// use crate::display::object::AffineMatrixAttributes;
|
||||
use crate::fixnum::Num;
|
||||
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
|
||||
|
|
Loading…
Reference in a new issue