diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2021-12-15 23:30:18 -0500 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2021-12-15 23:30:18 -0500 |
commit | fd291575a618b10bb4e730ae0522f104d94e93d3 (patch) | |
tree | c50074fd91899267ccf5719d246f0ea4fe568784 /src/tuice/component/base/block.rs | |
parent | c002a3fa3a3276464502e0b1ea2bd29a1b8e315b (diff) |
Switch back to dyn for nowtuice
Diffstat (limited to 'src/tuice/component/base/block.rs')
-rw-r--r-- | src/tuice/component/base/block.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tuice/component/base/block.rs b/src/tuice/component/base/block.rs index d1a7e2b9..c9386112 100644 --- a/src/tuice/component/base/block.rs +++ b/src/tuice/component/base/block.rs @@ -1,11 +1,11 @@ use tui::{backend::Backend, layout::Rect, Frame}; -use crate::tuice::{DrawContext, Event, Status, TmpComponent}; +use crate::tuice::{Component, DrawContext, Event, Status}; pub struct Block {} -impl<Message> TmpComponent<Message> for Block { - fn draw<B>(&mut self, _context: DrawContext<'_>, _frame: &mut Frame<'_, B>) +impl<Message, B: Backend> Component<Message, B> for Block { + fn draw(&mut self, _context: DrawContext<'_>, _frame: &mut Frame<'_, B>) where B: Backend, { |