Merge pull request #194 from gwilymk/fix-clippy-error

Fix clippy errors
This commit is contained in:
Corwin 2022-03-19 15:19:11 +00:00 committed by GitHub
commit ba7d5cf4c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

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

View file

@ -1,7 +1,7 @@
use core::arch::asm;
// use crate::display::object::AffineMatrixAttributes;
use crate::fixnum::Num;
#[allow(non_snake_case)]