diff options
author | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-05 17:03:42 +0530 |
---|---|---|
committer | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-05 17:03:42 +0530 |
commit | f8b3a0b38aaffbf8f2d78cd9147545f3d905b63b (patch) | |
tree | 7b6b124a324c035c25e6f156f05ba771f941b57b /src/interactive/widgets/main.rs | |
parent | 8059e8b8d292fc9ab1ec54a957c0531b7106711f (diff) |
removed propsmut in the hope it will work then, but not quite (yet?)
Diffstat (limited to 'src/interactive/widgets/main.rs')
-rw-r--r-- | src/interactive/widgets/main.rs | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/interactive/widgets/main.rs b/src/interactive/widgets/main.rs index 4e93160..0188894 100644 --- a/src/interactive/widgets/main.rs +++ b/src/interactive/widgets/main.rs @@ -7,7 +7,7 @@ use crate::interactive::{ FocussedPane, TerminalApp, }; use dua::traverse::Traversal; -use std::borrow::{Borrow, BorrowMut}; +use std::borrow::Borrow; use tui::style::{Color, Style}; use tui::{ buffer::Buffer, @@ -31,15 +31,8 @@ pub struct ReactMainWindow { impl<'a, 'b> Component for ReactMainWindow { type Props = TerminalApp; - type PropsMut = (); - fn render( - &mut self, - props: impl Borrow<TerminalApp>, - _props_mut: impl BorrowMut<Self::PropsMut>, - area: Rect, - buf: &mut Buffer, - ) { + fn render(&mut self, props: impl Borrow<TerminalApp>, area: Rect, buf: &mut Buffer) { let TerminalApp { traversal: Traversal { @@ -104,7 +97,7 @@ impl<'a, 'b> Component for ReactMainWindow { } else { false }, - list: ReactList::default(), + list: ReactList::<()>::default(), } .draw(entries_area, buf); @@ -112,7 +105,7 @@ impl<'a, 'b> Component for ReactMainWindow { let props = ReactHelpPaneProps { border_style: help_style, }; - pane.render(props, (), help_area, buf); + pane.render(props, help_area, buf); } ReactFooter.render( @@ -122,7 +115,6 @@ impl<'a, 'b> Component for ReactMainWindow { format: display.byte_format, message: state.message.clone(), }, - (), footer_area, buf, ); |