File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -82,19 +82,19 @@ fn serve(req: Request) -> Result<Response> {
8282 // read from the fallback path if the variable exists
8383 let read_result = match std:: env:: var ( FALLBACK_PATH_ENV ) {
8484 Ok ( fallback_path) => {
85- println ! ( "Fallback Path: {:?}" , fallback_path ) ;
85+ println ! ( "Fallback Path: {fallback_path :?}" ) ;
8686 FileServer :: read ( path, & enc) . or_else ( |_| FileServer :: read ( fallback_path. as_str ( ) , & enc) )
8787 }
8888 Err ( e) => {
89- eprintln ! ( "Cannot read env var: {:?}" , e ) ;
89+ eprintln ! ( "Cannot read env var: {e :?}" ) ;
9090 FileServer :: read ( path, & enc)
9191 }
9292 } ;
9393
9494 let body = match read_result {
9595 Ok ( b) => Some ( b) ,
9696 Err ( e) => {
97- eprintln ! ( "Cannot read file: {:?}" , e ) ;
97+ eprintln ! ( "Cannot read file: {e :?}" ) ;
9898 return not_found ( ) ;
9999 }
100100 } ;
You can’t perform that action at this time.
0 commit comments