revert widget trait

This commit is contained in:
Evan Almloff committed 2022-05-04 13:35:30 -05:00
1 parent 2176da4d75
commit 4aaf790ae9
2 files changed
+4 -5

No files matched your search

+2 -2
View File
@@ -43,7 +43,7 @@ pub(crate) fn render_vnode(
}
impl<'a> RinkWidget for Label<'a> {
fn render(self, area: Rect, buf: &mut RinkBuffer) {
fn render(self, area: Rect, mut buf: RinkBuffer) {
for (i, c) in self.text.char_indices() {
let mut new_cell = RinkCell::default();
new_cell.set_style(self.style);
@@ -81,7 +81,7 @@ pub(crate) fn render_vnode(
}
impl RinkWidget for &Node {
fn render(self, area: Rect, mut buf: &mut RinkBuffer<'_>) {
fn render(self, area: Rect, mut buf: RinkBuffer<'_>) {
use tui::symbols::line::*;
enum Direction {