diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-09-07 11:01:19 +0200 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2020-09-07 11:01:19 +0200 |
commit | 5df790a77a8c81b58e7507e8da5d9ac4975a64f8 (patch) | |
tree | 7ae6591e1891612b4aa99068da16f8ccb4994e03 | |
parent | 8062dfb7b4b974798bd8b957e01bb5143e4acc09 (diff) | |
download | nitrokey-rs-5df790a77a8c81b58e7507e8da5d9ac4975a64f8.tar.gz nitrokey-rs-5df790a77a8c81b58e7507e8da5d9ac4975a64f8.tar.bz2 |
Fix dead links in Device documentation
-rw-r--r-- | src/device/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/device/mod.rs b/src/device/mod.rs index e9018a4..fbf336d 100644 --- a/src/device/mod.rs +++ b/src/device/mod.rs @@ -305,6 +305,8 @@ pub trait Device<'a>: Authenticate<'a> + GetPasswordSafe<'a> + GenerateOtp + fmt /// } /// # Ok::<(), nitrokey::Error>(()) /// ``` + /// + /// [`Manager`]: struct.Manager.html fn into_manager(self) -> &'a mut crate::Manager; /// Returns the model of the connected Nitrokey device. @@ -642,6 +644,8 @@ pub trait Device<'a>: Authenticate<'a> + GetPasswordSafe<'a> + GenerateOtp + fmt /// # } /// ``` /// + /// [`InvalidString`]: enum.LibraryError.html#variant.InvalidString + /// [`WrongPassword`]: enum.CommandError.html#variant.WrongPassword /// [`build_aes_key`]: #method.build_aes_key fn factory_reset(&mut self, admin_pin: &str) -> Result<(), Error> { let admin_pin_string = get_cstring(admin_pin)?; @@ -677,6 +681,8 @@ pub trait Device<'a>: Authenticate<'a> + GetPasswordSafe<'a> + GenerateOtp + fmt /// # } /// ``` /// + /// [`InvalidString`]: enum.LibraryError.html#variant.InvalidString + /// [`WrongPassword`]: enum.CommandError.html#variant.WrongPassword /// [`factory_reset`]: #method.factory_reset fn build_aes_key(&mut self, admin_pin: &str) -> Result<(), Error> { let admin_pin_string = get_cstring(admin_pin)?; |