From 2c11acabd9a8c104fa564cca480088c11c9e8af9 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 7 Jun 2018 16:07:08 +0200 Subject: 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. --- src/auth.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/auth.rs') 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 Admin { /// admin.write_config(config); /// () /// }, - /// Err((_, err)) => println!("Could not authenticate as admin: {:?}", err), + /// Err((_, err)) => println!("Could not authenticate as admin: {}", err), /// }; /// # Ok(()) /// # } -- cgit v1.2.1