Skip to content

Commit 8763a70

Browse files
committed
fix clippy
1 parent 5bb154c commit 8763a70

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

module/move/wca/src/ca/verifier/verifier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
})?;

module/move/willbe/tests/inc/action_tests/crate_doc_test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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" );

0 commit comments

Comments
 (0)