Skip to content

Commit 1159a8d

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
fix clippy
1 parent dc7f9a7 commit 1159a8d

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
@@ -569,18 +569,19 @@ pub fn set_dscconfigroot(config_path: &str) -> String
569569
/// # Returns
570570
///
571571
/// * `bool` - True if the test result is in the desired state, false otherwise
572+
#[must_use]
572573
pub fn in_desired_state(test_result: &ResourceTestResult) -> bool {
573574
match &test_result.result {
574575
TestResult::Resource(result) => {
575-
return result.in_desired_state;
576+
result.in_desired_state
576577
},
577578
TestResult::Group(results) => {
578579
for result in results {
579-
if !in_desired_state(&result) {
580+
if !in_desired_state(result) {
580581
return false;
581582
}
582583
}
583-
return true;
584+
true
584585
}
585586
}
586587
}

0 commit comments

Comments
 (0)