aboutsummaryrefslogtreecommitdiff
path: root/src/pws.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/pws.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/pws.rs')
-rw-r--r--src/pws.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pws.rs b/src/pws.rs
index 17f247e..c20fe9d 100644
--- a/src/pws.rs
+++ b/src/pws.rs
@@ -88,7 +88,7 @@ pub trait GetPasswordSafe {
/// use_password_safe(&pws);
/// device.lock()?;
/// },
- /// Err(err) => println!("Could not open the password safe: {:?}", err),
+ /// Err(err) => println!("Could not open the password safe: {}", err),
/// };
/// # Ok(())
/// # }
@@ -177,7 +177,7 @@ impl<'a> PasswordSafe<'a> {
/// let password = pws.get_slot_login(0)?;
/// println!("Credentials for {}: login {}, password {}", name, login, password);
/// },
- /// Err(err) => println!("Could not open the password safe: {:?}", err),
+ /// Err(err) => println!("Could not open the password safe: {}", err),
/// };
/// # Ok(())
/// # }
@@ -313,7 +313,7 @@ impl<'a> PasswordSafe<'a> {
/// let pws = device.get_password_safe("123456")?;
/// match pws.erase_slot(0) {
/// Ok(()) => println!("Erased slot 0."),
- /// Err(err) => println!("Could not erase slot 0: {:?}", err),
+ /// Err(err) => println!("Could not erase slot 0: {}", err),
/// };
/// # Ok(())
/// # }