File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -207,10 +207,6 @@ mod tests {
207207 parse_cli ( args. iter ( ) . map ( OsString :: from) . collect ( ) )
208208 }
209209
210- fn parse_os ( args : Vec < OsString > ) -> Result < cli:: Cli , clap:: Error > {
211- parse_cli ( args)
212- }
213-
214210 #[ test]
215211 fn defaults_to_build_without_args ( ) {
216212 let cli = parse ( & [ "rescript" ] ) . expect ( "expected default build command" ) ;
@@ -262,7 +258,7 @@ mod tests {
262258 use std:: os:: unix:: ffi:: OsStringExt ;
263259
264260 let args = vec ! [ OsString :: from( "rescript" ) , OsString :: from_vec( vec![ 0xff ] ) ] ;
265- let err = parse_os ( args) . expect_err ( "expected clap to report invalid utf8" ) ;
261+ let err = parse_cli ( args) . expect_err ( "expected clap to report invalid utf8" ) ;
266262 assert_eq ! ( err. kind( ) , ErrorKind :: InvalidUtf8 ) ;
267263 }
268264}
You can’t perform that action at this time.
0 commit comments