File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
willbe/tests/inc/action_tests Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ mod private
273273 {
274274 #[ cfg( feature = "on_unknown_suggest" ) ]
275275 if let Some ( phrase ) = Self :: suggest_command ( dictionary, & raw_command. name ) {
276- return VerificationError :: CommandNotFound { name_suggestion : Some ( phrase. to_string ( ) ) , command_info : None } ;
276+ return Err ( VerificationError :: CommandNotFound { name_suggestion : Some ( phrase. to_string ( ) ) , command_info : None } ) ;
277277 }
278278 VerificationError :: CommandNotFound { name_suggestion : None , command_info : None }
279279 } ) ?;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ fn basic_test()
3434 . join ( format ! ( "{}_doc.md" , crate_name ) ) ;
3535
3636 // Act
37- let result = action:: crate_doc:: doc ( & workspace, crate_dir. clone ( ) , None ) ;
37+ let result = action:: crate_doc:: doc ( & workspace, & crate_dir, None ) ;
3838
3939 // Assert
4040 assert ! ( result. is_ok( ) , "Action failed: {:?}" , result. err( ) ) ;
@@ -81,7 +81,7 @@ fn output_option_test()
8181
8282
8383 // Act
84- let result = action:: crate_doc:: doc ( & workspace, crate_dir. clone ( ) , Some ( custom_output_rel_path. clone ( ) ) ) ;
84+ let result = action:: crate_doc:: doc ( & workspace, & crate_dir, Some ( custom_output_rel_path. clone ( ) ) ) ;
8585
8686 // Assert
8787 assert ! ( result. is_ok( ) , "Action failed: {:?}" , result. err( ) ) ;
@@ -144,7 +144,7 @@ fn cargo_doc_fail_test()
144144 . expect ( "Failed to load workspace" ) ;
145145
146146 // Act
147- let result = action:: crate_doc:: doc ( & workspace, crate_dir. clone ( ) , None ) ;
147+ let result = action:: crate_doc:: doc ( & workspace, & crate_dir, None ) ;
148148
149149 // Assert
150150 assert ! ( result. is_err( ) , "Action should fail when cargo doc fails" ) ;
You can’t perform that action at this time.
0 commit comments