Skip to content

Commit 76dcfcc

Browse files
committed
test(policy): satisfy unit-returning assertion lint
Terminate the two error-assertion match arms with semicolons, as required by Clippy. Preserve the existing checks and runtime behavior. Refs NVIDIA#3092. Signed-off-by: Shiju <[email protected]>
1 parent 9bfa988 commit 76dcfcc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates/openshell-supervisor-network/src

‎crates/openshell-supervisor-network/src/opa.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4548,7 +4548,7 @@ process:
45484548
match OpaEngine::from_strings(TEST_POLICY, &policy.to_string()) {
45494549
Ok(_) => accepted.push(format!("{field} (versioned={versioned})")),
45504550
Err(error) => {
4551-
assert_safe_load_error(&error, &["admin.example.test", "/admin/**"])
4551+
assert_safe_load_error(&error, &["admin.example.test", "/admin/**"]);
45524552
}
45534553
}
45544554
}
@@ -4586,7 +4586,7 @@ process:
45864586
match OpaEngine::from_strings(TEST_POLICY, &policy.to_string()) {
45874587
Ok(_) => accepted.push(invalid.clone()),
45884588
Err(error) => {
4589-
assert_safe_load_error(&error, &["root", "private-path", "4294967295"])
4589+
assert_safe_load_error(&error, &["root", "private-path", "4294967295"]);
45904590
}
45914591
}
45924592
}

0 commit comments

Comments
 (0)