@@ -18,7 +18,7 @@ use async_channel::{Receiver, Sender};
1818use futures:: FutureExt ;
1919use iwdrs:: { agent:: Agent , modes:: Mode , session:: Session } ;
2020
21- use crate :: { adapter:: Adapter , event:: Event , help :: Help , notification:: Notification } ;
21+ use crate :: { adapter:: Adapter , event:: Event , notification:: Notification } ;
2222
2323pub type AppResult < T > = std:: result:: Result < T , Box < dyn Error > > ;
2424
@@ -29,7 +29,6 @@ pub enum FocusedBlock {
2929 AccessPoint ,
3030 KnownNetworks ,
3131 NewNetworks ,
32- Help ,
3332 AuthKey ,
3433 AdapterInfos ,
3534 AccessPointInput ,
@@ -46,7 +45,6 @@ pub enum ColorMode {
4645pub struct App {
4746 pub running : bool ,
4847 pub focused_block : FocusedBlock ,
49- pub help : Help ,
5048 pub color_mode : ColorMode ,
5149 pub notifications : Vec < Notification > ,
5250 pub session : Arc < Session > ,
@@ -91,7 +89,7 @@ pub async fn request_confirmation(
9189}
9290
9391impl App {
94- pub async fn new ( help : Help , mode : Mode , sender : UnboundedSender < Event > ) -> AppResult < Self > {
92+ pub async fn new ( mode : Mode , sender : UnboundedSender < Event > ) -> AppResult < Self > {
9593 let session = {
9694 match iwdrs:: session:: Session :: new ( ) . await {
9795 Ok ( session) => Arc :: new ( session) ,
@@ -144,7 +142,6 @@ impl App {
144142 Ok ( Self {
145143 running : true ,
146144 focused_block : FocusedBlock :: Device ,
147- help,
148145 color_mode,
149146 notifications : Vec :: new ( ) ,
150147 session,
0 commit comments