Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveL-MSFT committed Jun 17, 2024
1 parent a8824d6 commit a706d91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dsc_lib/src/dscresources/invoke_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ pub enum TestResult {
Group(Vec<ResourceTestResult>),
}

#[must_use]
pub fn get_in_desired_state(test_result: &TestResult) -> bool {
match test_result {
TestResult::Resource(ref resource_test_result) => {
return resource_test_result.in_desired_state;
resource_test_result.in_desired_state
},
TestResult::Group(ref group_test_result) => {
for result in group_test_result {
Expand Down

0 comments on commit a706d91

Please sign in to comment.