fw-rust: Remove unnecessary Draw trait
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
finga 2022-04-02 18:35:48 +02:00
parent 9994b1fc40
commit 7f14974146
4 changed files with 6 additions and 15 deletions

View file

@ -1,4 +1,4 @@
use super::{Draw, Event, Home, Screens};
use super::{Event, Home, Screens};
use crate::{eeprom, lcd::Lcd, Input, BACKLIGHT, CONTRAST};
enum Selection {
@ -106,10 +106,8 @@ impl Setup {
Event::None
}
}
impl Draw for Setup {
fn draw(&self, lcd: &mut Lcd) {
pub fn draw(&self, lcd: &mut Lcd) {
match &self.active {
Selection::Contrast => {
lcd.fill_area(0, 0, 33, 2, 0xFF);