Skip to content

Commit a706d91

Browse files
committed
fix clippy
1 parent a8824d6 commit a706d91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dsc_lib/src/dscresources/invoke_result.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ pub enum TestResult {
9090
Group(Vec<ResourceTestResult>),
9191
}
9292

93+
#[must_use]
9394
pub fn get_in_desired_state(test_result: &TestResult) -> bool {
9495
match test_result {
9596
TestResult::Resource(ref resource_test_result) => {
96-
return resource_test_result.in_desired_state;
97+
resource_test_result.in_desired_state
9798
},
9899
TestResult::Group(ref group_test_result) => {
99100
for result in group_test_result {

0 commit comments

Comments
 (0)