Commit 8b02aaf
committed
chore(webauthn): allow clippy::expect_used on infallible clientDataJSON
to_json serializes a fixed-shape struct of strings and a bool, which
serde_json cannot fail to encode. The API is intentionally infallible,
so allow expect_used on the function rather than threading a Result
through hash() and every caller.1 parent c7a17d5 commit 8b02aaf
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
0 commit comments