@@ -5,6 +5,7 @@ use futures::io::BufReader;
55use futures:: prelude:: * ;
66use futures:: task:: LocalSpawnExt ;
77use glib:: { clone, Properties } ;
8+ use gtk:: gdk;
89use gtk:: gdk:: prelude:: * ;
910use gtk:: gio;
1011use gtk:: glib;
@@ -19,12 +20,11 @@ use std::marker::PhantomData;
1920use std:: pin:: Pin ;
2021use std:: rc:: Rc ;
2122use url:: Url ;
22- use gtk:: gdk;
2323
2424use crate :: common;
2525use crate :: common:: { glibctx, HistoryItem , LossyTextRead , PageElement } ;
26- use crate :: text_extensions:: Gemini as GeminiTextExt ;
2726use crate :: gemini;
27+ use crate :: text_extensions:: Gemini as GeminiTextExt ;
2828
2929#[ derive( Clone , Debug , glib:: Boxed , Default ) ]
3030#[ boxed_type( name = "GeopardHistoryStatus" ) ]
@@ -196,7 +196,9 @@ impl Tab {
196196 let link = Self :: extract_linkhandler ( gemini_text_ext, x, y) ;
197197 match link {
198198 Ok ( _) => {
199- gemini_text_ext. text_view . set_cursor_from_name ( Some ( "pointer" ) ) ;
199+ gemini_text_ext
200+ . text_view
201+ . set_cursor_from_name ( Some ( "pointer" ) ) ;
200202 }
201203 Err ( _) => {
202204 gemini_text_ext. text_view . set_cursor_from_name ( Some ( "text" ) ) ;
@@ -431,7 +433,12 @@ impl Tab {
431433 Ok ( ( ) )
432434 }
433435 async fn send_request ( & self , url : Url ) -> Result < Option < Vec < u8 > > > {
434- self . imp ( ) . gemini_text_ext . borrow_mut ( ) . as_mut ( ) . unwrap ( ) . clear ( ) ;
436+ self . imp ( )
437+ . gemini_text_ext
438+ . borrow_mut ( )
439+ . as_mut ( )
440+ . unwrap ( )
441+ . clear ( ) ;
435442 match url. scheme ( ) {
436443 "about" => {
437444 let reader = futures:: io:: BufReader :: new ( common:: ABOUT_PAGE . as_bytes ( ) ) ;
@@ -584,10 +591,7 @@ impl Tab {
584591
585592 Ok ( ( ) )
586593 }
587- async fn display_text (
588- & self ,
589- mut stream : impl AsyncBufRead + Unpin ,
590- ) -> anyhow:: Result < ( ) > {
594+ async fn display_text ( & self , mut stream : impl AsyncBufRead + Unpin ) -> anyhow:: Result < ( ) > {
591595 let gemini_text_ext = self . imp ( ) . gemini_text_ext . borrow ( ) ;
592596 let gemini_text_ext = gemini_text_ext. as_ref ( ) . unwrap ( ) ;
593597 let mut line = String :: with_capacity ( 1024 ) ;
@@ -723,7 +727,7 @@ impl Tab {
723727 Ok ( data. into_bytes ( ) )
724728 }
725729 pub fn set_link_color ( & self , rgba : & gdk:: RGBA ) {
726- self . imp ( )
730+ self . imp ( )
727731 . gemini_text_ext
728732 . borrow ( )
729733 . as_ref ( )
0 commit comments