aboutsummaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-09-07 11:01:19 +0200
committerRobin Krahl <robin.krahl@ireas.org>2020-09-07 11:01:19 +0200
commit5df790a77a8c81b58e7507e8da5d9ac4975a64f8 (patch)
tree7ae6591e1891612b4aa99068da16f8ccb4994e03 /src/device
parent8062dfb7b4b974798bd8b957e01bb5143e4acc09 (diff)
downloadnitrokey-rs-5df790a77a8c81b58e7507e8da5d9ac4975a64f8.tar.gz
nitrokey-rs-5df790a77a8c81b58e7507e8da5d9ac4975a64f8.tar.bz2
Fix dead links in Device documentation
Diffstat (limited to 'src/device')
-rw-r--r--src/device/mod.rs6
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)?;