aboutsummaryrefslogtreecommitdiff
path: root/tests/otp.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-17 13:53:15 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-01-20 21:08:52 +0000
commit70e886d3ca487c306b8eced9f0e067a67ba9c1bb (patch)
tree2131bece64043051c5dd7921dbe329e22b13e195 /tests/otp.rs
parentc191e875492ff8aeab1b4493b87486cd265f0edc (diff)
downloadnitrokey-rs-70e886d3ca487c306b8eced9f0e067a67ba9c1bb.tar.gz
nitrokey-rs-70e886d3ca487c306b8eced9f0e067a67ba9c1bb.tar.bz2
Return CommunicationError::NotConnected from connect functions
Previously, we returned a CommandError::Undefined if a connect function failed. A CommunicationError::NotConnected is a more specific and better fitting choice. Once the Try trait has been stabilized, we should return an Option<_> instead of a Result<_, Error> from the connect functions.
Diffstat (limited to 'tests/otp.rs')
0 files changed, 0 insertions, 0 deletions