Crossterm interface
This commit is contained in:
@@ -4,7 +4,7 @@ pub trait Widget {
|
||||
fn render(&self, scope: &mut RenderScope);
|
||||
}
|
||||
|
||||
impl Widget for str {
|
||||
impl Widget for &str {
|
||||
fn render(&self, scope: &mut RenderScope) {
|
||||
scope.draw_text(0, self);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user