refactor: Remove unnecessary allow_unused block

This commit is contained in:
Liam 2024-08-17 11:33:56 -07:00
parent f70195905f
commit 7bbde2a342
No known key found for this signature in database

View File

@ -86,14 +86,12 @@ impl Theme {
}
impl Theme {
#[allow(unused)]
pub fn next(&mut self) {
let position = *self as usize;
let types = Theme::value_variants();
*self = types[(position + 1) % types.len()];
}
#[allow(unused)]
pub fn prev(&mut self) {
let position = *self as usize;
let types = Theme::value_variants();