Skip to content

Commit cfd2a02

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
fix clippy
1 parent 69fa3a8 commit cfd2a02

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dsc/src/util.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,18 +543,19 @@ pub fn set_dscconfigroot(config_path: &str) -> String
543543
/// # Returns
544544
///
545545
/// * `bool` - True if the test result is in the desired state, false otherwise
546+
#[must_use]
546547
pub fn in_desired_state(test_result: &ResourceTestResult) -> bool {
547548
match &test_result.result {
548549
TestResult::Resource(result) => {
549-
return result.in_desired_state;
550+
result.in_desired_state
550551
},
551552
TestResult::Group(results) => {
552553
for result in results {
553-
if !in_desired_state(&result) {
554+
if !in_desired_state(result) {
554555
return false;
555556
}
556557
}
557-
return true;
558+
true
558559
}
559560
}
560561
}

0 commit comments

Comments
 (0)