Skip to content

Commit 0c33eff

Browse files
committed
small refactor to satisfy clippy
Signed-off-by: Eric Devolder <[email protected]>
1 parent e42c41c commit 0c33eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cryptoki/tests/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ fn session_objecthandle_iterator() -> testresult::TestResult {
447447
let iter = session.iter_objects(&key_search_template);
448448
let iter2 = session.iter_objects(&key_search_template);
449449

450-
assert!(matches!(iter, Ok(_)));
450+
assert!(iter.is_ok());
451451
assert!(matches!(
452452
iter2,
453453
Err(Error::Pkcs11(RvError::OperationActive, _))

0 commit comments

Comments
 (0)