diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-28 20:02:18 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-01-28 21:02:57 +0100 |
commit | 12b6a4d6c56cba4c2a87027d7c5f26ebe42d3315 (patch) | |
tree | 8aab49b3a6602b6f86b19fb982f3fe1754bd3533 /src/pws.rs | |
parent | d1262390573b758ac4aa610eff96a1b5dcb9f3d6 (diff) | |
download | nitrokey-rs-12b6a4d6c56cba4c2a87027d7c5f26ebe42d3315.tar.gz nitrokey-rs-12b6a4d6c56cba4c2a87027d7c5f26ebe42d3315.tar.bz2 |
Prefer eprintln over println for error messages
Diffstat (limited to 'src/pws.rs')
-rw-r--r-- | src/pws.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -103,7 +103,7 @@ pub trait GetPasswordSafe { /// use_password_safe(&pws); /// device.lock()?; /// }, - /// Err(err) => println!("Could not open the password safe: {}", err), + /// Err(err) => eprintln!("Could not open the password safe: {}", err), /// }; /// # Ok(()) /// # } @@ -201,7 +201,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) => eprintln!("Could not open the password safe: {}", err), /// }; /// # Ok(()) /// # } @@ -344,7 +344,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) => eprintln!("Could not erase slot 0: {}", err), /// }; /// # Ok(()) /// # } |