aboutsummaryrefslogtreecommitdiff
path: root/src/auth.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-06-07 16:07:08 +0200
committerRobin Krahl <robin.krahl@ireas.org>2018-06-07 16:07:08 +0200
commit2c11acabd9a8c104fa564cca480088c11c9e8af9 (patch)
treed2c71624697a9e059e38b7b049cc3cb2737168c1 /src/auth.rs
parent66f22f7fb47197298702a0fefff17c81667b2739 (diff)
downloadnitrokey-rs-2c11acabd9a8c104fa564cca480088c11c9e8af9.tar.gz
nitrokey-rs-2c11acabd9a8c104fa564cca480088c11c9e8af9.tar.bz2
Use {} instead of {:?} where possible
Most notably, for command errors, this will print a human-readable error message instead of just the name of the enum.
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 8460fae..0918222 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -42,7 +42,7 @@ pub trait Authenticate {
/// user.device()
/// },
/// Err((device, err)) => {
- /// println!("Could not authenticate as user: {:?}", err);
+ /// println!("Could not authenticate as user: {}", err);
/// device
/// },
/// };
@@ -88,7 +88,7 @@ pub trait Authenticate {
/// admin.device()
/// },
/// Err((device, err)) => {
- /// println!("Could not authenticate as admin: {:?}", err);
+ /// println!("Could not authenticate as admin: {}", err);
/// device
/// },
/// };
@@ -277,7 +277,7 @@ impl<T: Device> Admin<T> {
/// admin.write_config(config);
/// ()
/// },
- /// Err((_, err)) => println!("Could not authenticate as admin: {:?}", err),
+ /// Err((_, err)) => println!("Could not authenticate as admin: {}", err),
/// };
/// # Ok(())
/// # }