Skip to content
Snippets Groups Projects
Commit e1c6aca7 authored by koenigl's avatar koenigl
Browse files

button subsystem: use manual panic! instead of unwrap()

unwrap only works if the error value implements Debug, however since the
buttons subsystem doesn't return TockValue<E> but TockError this isn't the case
(anymore).  In theory one should think about refactoring check_user_presence()
to return TockResult<()> and possibly implementing some way for Ctap2StatusCode
to be converted to TockError enums or similar.  Then we can just pass errors
up the stack instead of panicking early.
parent 0b6cecf6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment