diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-10 23:15:41 +0000 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-01-13 19:43:37 -0800 |
commit | d64d379e97a600c08b1e145f6f986aaf95ddcc8f (patch) | |
tree | a904dd96e2d42b9769ad17dfc45f30765e4a3ab1 /libc/src/unix/bsd/mod.rs | |
parent | 9a951f64992af28458da15590ca99456b3d36cbc (diff) | |
download | nitrocli-d64d379e97a600c08b1e145f6f986aaf95ddcc8f.tar.gz nitrocli-d64d379e97a600c08b1e145f6f986aaf95ddcc8f.tar.bz2 |
Refactor get_device to use nitrokey::connect_model
nitrokey 0.3.1 introduced the connect_model function that connects to a
specific model given by an enum variant and returns a DeviceWrapper.
This new function allows us to remove the manual selection of a
connection method from the get_device function. We only have to
implement From<DeviceModel> for nitrokey::Model to be able to convert
our model enum to nitrokey's model enum.
Diffstat (limited to 'libc/src/unix/bsd/mod.rs')
0 files changed, 0 insertions, 0 deletions