mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-04-11 15:08:31 +01:00
refactor: Remove unnecessary allow_unused block
This commit is contained in:
parent
f70195905f
commit
7bbde2a342
@ -86,14 +86,12 @@ impl Theme {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Theme {
|
impl Theme {
|
||||||
#[allow(unused)]
|
|
||||||
pub fn next(&mut self) {
|
pub fn next(&mut self) {
|
||||||
let position = *self as usize;
|
let position = *self as usize;
|
||||||
let types = Theme::value_variants();
|
let types = Theme::value_variants();
|
||||||
*self = types[(position + 1) % types.len()];
|
*self = types[(position + 1) % types.len()];
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub fn prev(&mut self) {
|
pub fn prev(&mut self) {
|
||||||
let position = *self as usize;
|
let position = *self as usize;
|
||||||
let types = Theme::value_variants();
|
let types = Theme::value_variants();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user