@@ -5,7 +5,7 @@ use ratatui::{
55 buffer:: Buffer ,
66 layout:: Rect ,
77 style:: { Color , Style , Stylize } ,
8- widgets:: { Block , BorderType , List , ListItem , ListState , StatefulWidgetRef } ,
8+ widgets:: { Block , BorderType , List , ListItem , ListState , StatefulWidget } ,
99} ;
1010
1111#[ derive( Debug , Default , Clone , PartialEq ) ]
@@ -59,10 +59,10 @@ pub struct VaultSelector<'a> {
5959 _lifetime : PhantomData < & ' a ( ) > ,
6060}
6161
62- impl < ' a > StatefulWidgetRef for VaultSelector < ' a > {
62+ impl < ' a > StatefulWidget for VaultSelector < ' a > {
6363 type State = VaultSelectorState < ' a > ;
6464
65- fn render_ref ( & self , area : Rect , buf : & mut Buffer , state : & mut Self :: State ) {
65+ fn render ( self , area : Rect , buf : & mut Buffer , state : & mut Self :: State ) {
6666 let items: Vec < ListItem > = state
6767 . items
6868 . iter ( )
@@ -86,6 +86,6 @@ impl<'a> StatefulWidgetRef for VaultSelector<'a> {
8686 . fg ( Color :: default ( ) )
8787 . highlight_style ( Style :: new ( ) . reversed ( ) . dark_gray ( ) )
8888 . highlight_symbol ( " " )
89- . render_ref ( area, buf, & mut state. list_state ) ;
89+ . render ( area, buf, & mut state. list_state ) ;
9090 }
9191}
0 commit comments