Skip to content

Commit dcc6f7f

Browse files
committed
fix: fixed linting error
Signed-off-by: Artem Lytvyn <[email protected]>
1 parent 2992ee1 commit dcc6f7f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • crates/openshell-supervisor-process/src/sandbox/linux

‎crates/openshell-supervisor-process/src/sandbox/linux/landlock.rs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,8 @@ mod tests {
535535
// Zero configured paths under hard_requirement must fail startup rather
536536
// than silently running without filesystem restrictions.
537537
let policy = hard_requirement_policy(vec![], vec![]);
538-
let err = match prepare(&policy, None) {
539-
Err(err) => err,
540-
Ok(_) => panic!("should abort with no paths"),
538+
let Err(err) = prepare(&policy, None) else {
539+
panic!("should abort with no paths");
541540
};
542541
let msg = err.to_string();
543542
assert!(

0 commit comments

Comments
 (0)