mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-12 01:51:34 +11:00
Add comment about the #[allow]
This commit is contained in:
parent
ccdb0e4921
commit
60657126ad
|
@ -9,6 +9,8 @@ impl Palette16 {
|
||||||
Palette16 { colours }
|
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)]
|
#[allow(clippy::only_used_in_recursion)]
|
||||||
pub fn update_colour(&mut self, index: usize, colour: u16) {
|
pub fn update_colour(&mut self, index: usize, colour: u16) {
|
||||||
self.colours[index] = colour;
|
self.colours[index] = colour;
|
||||||
|
|
Loading…
Reference in a new issue