You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used this example to implement tests, but clippy is not much happy
about that so changing also the docs to avoid leading by bad example
next fellow readers:
error: accessing first element with `attrs.get(0)`
--> cryptoki/tests/basic.rs:2528:26
|
2528 | assert!(matches!(attrs.get(0), Some(Attribute::UniqueId(_))));
| ^^^^^^^^^^^^ help: try: `attrs.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
Signed-off-by: Jakub Jelen <[email protected]>
0 commit comments