diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-27 18:42:14 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-07-08 21:40:17 +0000 |
commit | fe2f39826ade5a156945dabb8c8ab725378a15c1 (patch) | |
tree | cd2c9d662dd93813524c5227c2c44e52cadde20e /.builds/archlinux.yml | |
parent | 379bc798477a1de7ffda923c5d10ca63aebae25f (diff) | |
download | nitrokey-rs-fe2f39826ade5a156945dabb8c8ab725378a15c1.tar.gz nitrokey-rs-fe2f39826ade5a156945dabb8c8ab725378a15c1.tar.bz2 |
Store mutable reference to Manager in Device
In the last patches, we ensured that devices can only be obtained using
the Manager struct. But we did not ensure that there is only one device
at a time. This patch adds a mutable reference to the Manager instance
to the Device implementations. The borrow checker makes sure that there
is only one mutable reference at a time.
In this patch, we have to remove the old connect, Pro::connect and
Storage::connect functions as they do no longer compile. (They discard
the MutexGuard which invalidates the reference to the Manager.)
Therefore the tests do no longer compile.
Diffstat (limited to '.builds/archlinux.yml')
0 files changed, 0 insertions, 0 deletions