@@ -25,7 +25,7 @@ use megalodon::entities::{Context, Instance, Status};
2525use megalodon:: error:: { Kind , OwnError } ;
2626use megalodon:: { Megalodon , mastodon} ;
2727use xilem:: core:: one_of:: { Either , OneOf , OneOf3 , OneOf6 } ;
28- use xilem:: core:: { Edit , NoElement , View , fork, lens, map_action, map_state} ;
28+ use xilem:: core:: { NoElement , View , fork, lens, map_action, map_state} ;
2929use xilem:: masonry:: layout:: AsUnit ;
3030use xilem:: style:: Style ;
3131use xilem:: tokio:: sync:: mpsc:: { UnboundedReceiver , UnboundedSender } ;
@@ -84,7 +84,7 @@ enum MainState {
8484 New ( PlaceheroWithLogin ) ,
8585}
8686
87- fn select_app( state : & mut MainState ) -> impl WidgetView < Edit < MainState > > + use<> {
87+ fn select_app( state : & mut MainState ) -> impl WidgetView < MainState > + use<> {
8888 match state {
8989 MainState :: Selecting => OneOf3 :: A (
9090 flex_col ( (
@@ -104,13 +104,13 @@ fn select_app(state: &mut MainState) -> impl WidgetView<Edit<MainState>> + use<>
104104 ) )
105105 . main_axis_alignment ( MainAxisAlignment :: Center ) ,
106106 ) ,
107- MainState :: Old ( _) => OneOf :: B ( lens ( app_logic, |state : & mut MainState , ( ) | {
107+ MainState :: Old ( _) => OneOf :: B ( lens ( app_logic, |state : & mut MainState | {
108108 let MainState :: Old ( placehero) = state else {
109109 unreachable ! ( )
110110 } ;
111111 placehero
112112 } ) ) ,
113- MainState :: New ( _) => OneOf :: C ( lens ( login_flow:: app_logic, |state : & mut MainState , ( ) | {
113+ MainState :: New ( _) => OneOf :: C ( lens ( login_flow:: app_logic, |state : & mut MainState | {
114114 let MainState :: New ( placehero) = state else {
115115 unreachable ! ( )
116116 } ;
@@ -163,7 +163,7 @@ impl Default for Placehero {
163163}
164164
165165impl Placehero {
166- fn sidebar( & mut self ) -> impl WidgetView < Edit < Self > , Navigation > + use<> {
166+ fn sidebar( & mut self ) -> impl WidgetView < Self , Navigation > + use<> {
167167 if let Some ( instance) = & self . instance {
168168 let back = if self . show_context . is_some ( ) {
169169 // TODO: Make the ⬅️ arrow not be available to screen readers.
@@ -200,7 +200,7 @@ impl Placehero {
200200 }
201201 }
202202
203- fn main_view ( & mut self ) -> impl WidgetView < Edit < Self > , Navigation > + use < > {
203+ fn main_view ( & mut self ) -> impl WidgetView < Self , Navigation > + use < > {
204204 if let Some ( show_context) = self . show_context . as_ref ( ) {
205205 if let Some ( context) = self . context . as_ref ( ) {
206206 // TODO: Display the status until the entire thread loads; this is hard because
@@ -224,15 +224,15 @@ impl Placehero {
224224 // In the current edition of the app, the timeline is never removed
225225 // If it ever is, we'll need to be more careful here.
226226 // The patterns are still in flux.
227- |this : & mut Self , ( ) | this. timeline . as_mut ( ) . unwrap ( ) ,
227+ |this : & mut Self | this. timeline . as_mut ( ) . unwrap ( ) ,
228228 ) )
229229 } else {
230230 OneOf :: F ( prose ( "No statuses yet loaded" ) )
231231 }
232232 }
233233}
234234
235- fn app_logic( app_state: & mut Placehero ) -> impl WidgetView < Edit < Placehero > > + use <> {
235+ fn app_logic( app_state: & mut Placehero ) -> impl WidgetView < Placehero > + use <> {
236236 Avatars :: provide ( fork (
237237 map_action (
238238 split ( app_state. sidebar ( ) , app_state. main_view ( ) ) . split_point ( 0.2 ) ,
@@ -276,7 +276,7 @@ fn app_logic(app_state: &mut Placehero) -> impl WidgetView<Edit<Placehero>> + us
276276
277277fn load_contexts (
278278 mastodon : Mastodon ,
279- ) -> impl View < Edit < Placehero > , ( ) , ViewCtx , Element = NoElement > + use < > {
279+ ) -> impl View < Placehero , ( ) , ViewCtx , Element = NoElement > + use < > {
280280 worker_raw (
281281 move |result, mut recv : UnboundedReceiver < String > | {
282282 let mastodon = mastodon. clone ( ) ;
@@ -320,7 +320,7 @@ fn load_contexts(
320320
321321fn load_instance(
322322 mastodon: Mastodon ,
323- ) -> impl View < Edit < Placehero > , ( ) , ViewCtx , Element = NoElement > + use <> {
323+ ) -> impl View < Placehero , ( ) , ViewCtx , Element = NoElement > + use <> {
324324 task_raw (
325325 move |result, _| {
326326 let mastodon = mastodon. clone ( ) ;
@@ -345,7 +345,7 @@ fn load_instance(
345345
346346fn load_account(
347347 mastodon : Mastodon ,
348- ) -> impl View < Edit < Placehero > , ( ) , ViewCtx , Element = NoElement > + use<> {
348+ ) -> impl View < Placehero , ( ) , ViewCtx , Element = NoElement > + use<> {
349349 worker_raw (
350350 move |result, mut recv : UnboundedReceiver < String > | {
351351 let mastodon = mastodon. clone ( ) ;
0 commit comments