File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -117,14 +117,14 @@ pub fn relative_specifier_path_for_display(
117117) -> String {
118118 if to. scheme ( ) == "file" && from. scheme ( ) == "file" {
119119 let relative_specifier = relative_specifier ( from, to)
120- . map ( |s| Cow :: Owned ( s ) )
120+ . map ( Cow :: Owned )
121121 . unwrap_or_else ( || Cow :: Borrowed ( to. as_str ( ) ) ) ;
122122 let relative_specifier = if relative_specifier. starts_with ( "../../../" ) {
123123 to. as_str ( )
124124 } else {
125125 relative_specifier. trim_start_matches ( "./" )
126126 } ;
127- to_percent_decoded_str ( & relative_specifier)
127+ to_percent_decoded_str ( relative_specifier)
128128 } else {
129129 to_percent_decoded_str ( to. as_str ( ) )
130130 }
Original file line number Diff line number Diff line change @@ -823,7 +823,9 @@ testing[WILDCARD]this
823823 . args ( "compile --output binary main.ts" )
824824 . run ( )
825825 . assert_exit_code ( 0 )
826- . assert_matches_text ( "Check main.ts\n Compile main.ts to binary[WILDLINE]\n " ) ;
826+ . assert_matches_text (
827+ "Check main.ts\n Compile main.ts to binary[WILDLINE]\n " ,
828+ ) ;
827829
828830 context
829831 . new_command ( )
You can’t perform that action at this time.
0 commit comments