cargo fmt

This commit is contained in:
Yu Chen 2022-06-20 23:32:27 +08:00
parent 45c2caf564
commit a6c8f4de34
13 changed files with 181 additions and 135 deletions

View file

@ -1,10 +1,17 @@
use crate::{
gui::{Button, Component},
sync::UPIntrFreeCell,
syscall::PAD,
};
use alloc::{string::ToString, sync::Arc};
use core::any::Any;
use alloc::{sync::Arc, string::ToString};
use embedded_graphics::{text::Text, prelude::{Size, Point}};
use embedded_graphics::{
prelude::{Point, Size},
text::Text,
};
use k210_hal::cache::Uncache;
use virtio_drivers::{VirtIOHeader, VirtIOInput};
use virtio_input_decoder::{Decoder, Key, KeyType};
use crate::{gui::{Button, Component}, sync::UPIntrFreeCell, syscall::PAD};
use super::GPU_DEVICE;
@ -56,13 +63,12 @@ impl INPUTDevice for VirtIOINPUT {
} else {
a.repaint(k.to_string())
}
},
Err(_) => {},
}
Err(_) => {}
}
}
}
virtio_input_decoder::DecodeType::Mouse(mouse) => println!("{:?}", mouse),
}
}
}
}