File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 14941494 ) )
14951495 } ) ?;
14961496
1497- clipboard. set_text ( text ) . map_err ( |e| {
1498- Error :: Config ( format ! ( "Failed to copy to clipboard: {e}" ) )
1499- } ) ?;
1497+ clipboard
1498+ . set_text ( text )
1499+ . map_err ( |e| Error :: Config ( format ! ( "Failed to copy to clipboard: {e}" ) ) ) ?;
15001500
15011501 Ok ( ( ) )
15021502 }
Original file line number Diff line number Diff line change @@ -185,7 +185,12 @@ impl AstDiffer {
185185 ) {
186186 let name = child
187187 . child_by_field_name ( "name" )
188- . or_else ( || child. child_by_field_name ( "declarations" ) . and_then ( |d| d. child ( 0 ) ) . and_then ( |n| n. child_by_field_name ( "name" ) ) )
188+ . or_else ( || {
189+ child
190+ . child_by_field_name ( "declarations" )
191+ . and_then ( |d| d. child ( 0 ) )
192+ . and_then ( |n| n. child_by_field_name ( "name" ) )
193+ } )
189194 . and_then ( |n| n. utf8_text ( source. as_bytes ( ) ) . ok ( ) )
190195 . unwrap_or ( "" )
191196 . to_string ( ) ;
You can’t perform that action at this time.
0 commit comments