Remove EventAcceptable Trait

This commit is contained in:
RainBus
2024-10-18 19:55:00 +08:00
parent c71545432d
commit 80566a4cc5

View File

@@ -15,8 +15,6 @@ pub trait View {
fn handle_event(&mut self, event: &Event) -> io::Result<()>;
}
pub trait EventAcceptable {}
fn center_rect(area: Rect, width: u16, height: u16) -> Rect {
let horizontal = Layout::horizontal([width]).flex(Flex::Center);
let vertical = Layout::vertical([height]).flex(Flex::Center);