We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc7f9a7 commit 1159a8dCopy full SHA for 1159a8d
dsc/src/util.rs
@@ -569,18 +569,19 @@ pub fn set_dscconfigroot(config_path: &str) -> String
569
/// # Returns
570
///
571
/// * `bool` - True if the test result is in the desired state, false otherwise
572
+#[must_use]
573
pub fn in_desired_state(test_result: &ResourceTestResult) -> bool {
574
match &test_result.result {
575
TestResult::Resource(result) => {
- return result.in_desired_state;
576
+ result.in_desired_state
577
},
578
TestResult::Group(results) => {
579
for result in results {
- if !in_desired_state(&result) {
580
+ if !in_desired_state(result) {
581
return false;
582
}
583
- return true;
584
+ true
585
586
587
0 commit comments