summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
Diffstat (limited to 'src/device')
-rw-r--r--src/device/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/device/mod.rs b/src/device/mod.rs
index af28ab5..5e15f08 100644
--- a/src/device/mod.rs
+++ b/src/device/mod.rs
@@ -78,13 +78,11 @@ pub trait Device<'a>: Authenticate<'a> + GetPasswordSafe<'a> + GenerateOtp + fmt
/// // ...
/// }
///
- /// # fn main() -> Result<(), nitrokey::Error> {
/// match nitrokey::take()?.connect() {
/// Ok(device) => do_something(device),
/// Err(err) => println!("Could not connect to a Nitrokey: {}", err),
/// }
- /// # Ok(())
- /// # }
+ /// # Ok::<(), nitrokey::Error>(())
/// ```
fn into_manager(self) -> &'a mut crate::Manager;