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/auth.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/auth.rs')
-rw-r--r-- | src/auth.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/auth.rs b/src/auth.rs index 18b6572..8978f32 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -49,7 +49,7 @@ pub trait Authenticate { /// user.device() /// }, /// Err((device, err)) => { - /// println!("Could not authenticate as user: {}", err); + /// eprintln!("Could not authenticate as user: {}", err); /// device /// }, /// }; @@ -95,7 +95,7 @@ pub trait Authenticate { /// admin.device() /// }, /// Err((device, err)) => { - /// println!("Could not authenticate as admin: {}", err); + /// eprintln!("Could not authenticate as admin: {}", err); /// device /// }, /// }; @@ -282,7 +282,7 @@ impl<T: Device> Admin<T> { /// admin.write_config(config); /// () /// }, - /// Err((_, err)) => println!("Could not authenticate as admin: {}", err), + /// Err((_, err)) => eprintln!("Could not authenticate as admin: {}", err), /// }; /// # Ok(()) /// # } |