@@ -39,7 +39,7 @@ pub async fn authorize_github(env: &Environment) -> Result<SmbAuthorization> {
3939 let ( tx, rx) : ( Sender < String > , Receiver < String > ) = mpsc:: channel ( ) ;
4040 debug ! (
4141 "Setting up OAuth callback server... (tx: {:#?}, rx: {:#?})" ,
42- & tx, & rx
42+ tx, rx
4343 ) ;
4444 tokio:: spawn ( async move {
4545 setup_oauth_callback_server ( tx) ;
@@ -58,7 +58,7 @@ pub async fn authorize_github(env: &Environment) -> Result<SmbAuthorization> {
5858
5959 match rx. recv ( ) {
6060 Ok ( code) => {
61- debug ! ( "Got code from channel: {:#?}" , & code) ;
61+ debug ! ( "Got code from channel: {:#?}" , code) ;
6262 process_connect_github ( * env, code) . await
6363 }
6464 Err ( e) => {
@@ -89,7 +89,7 @@ fn handle_connection(mut stream: TcpStream, tx: Sender<String>) {
8989 let code = group. get ( 1 ) . unwrap ( ) . as_str ( ) ;
9090 debug ! ( "Code: {:#?}" , code) ;
9191 debug ! ( "Sending code to channel..." ) ;
92- debug ! ( "Channel: {:#?}" , & tx) ;
92+ debug ! ( "Channel: {:#?}" , tx) ;
9393 match tx. send ( code. to_string ( ) ) {
9494 Ok ( _) => {
9595 debug ! ( "Code sent to channel." ) ;
@@ -135,7 +135,7 @@ fn handle_connection(mut stream: TcpStream, tx: Sender<String>) {
135135 }
136136 } ;
137137
138- debug ! ( "Contents: {:#?}" , & contents) ;
138+ debug ! ( "Contents: {:#?}" , contents) ;
139139 let response = format ! ( "{status_line}\r \n \r \n {contents}" ) ;
140140 stream. write_all ( response. as_bytes ( ) ) . unwrap ( ) ;
141141 stream. flush ( ) . unwrap ( ) ;
0 commit comments