diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-17 13:53:15 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-01-20 21:08:52 +0000 |
commit | 70e886d3ca487c306b8eced9f0e067a67ba9c1bb (patch) | |
tree | 2131bece64043051c5dd7921dbe329e22b13e195 /tests/device.rs | |
parent | c191e875492ff8aeab1b4493b87486cd265f0edc (diff) | |
download | nitrokey-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/device.rs')
0 files changed, 0 insertions, 0 deletions