summary refs log tree commit diff stats
path: root/src/user.rs
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2020-05-26 19:43:37 -0400
committerBen Morrison <ben@gbmor.dev>2020-05-26 19:43:37 -0400
commitc5ea65393d9b8000d68cf8c2f887f22bdae81222 (patch)
tree4a044312814ce7b70c6d9af0a7e32b3860ee9425 /src/user.rs
parenta24e25977e713fbc5a06778ada4c21202209a598 (diff)
downloadclinte-c5ea65393d9b8000d68cf8c2f887f22bdae81222.tar.gz
logging changes:
Rather than using a new logfile for each invocation, a single logfile
called `/tmp/clinte_$USER.log` will be used, with later invocations
appending to the previous messages.

Also removed some unnecessary `use` statements relating to the `log`
crate and its macros. Leaving the macro calls namespaced to `log::`
makes it clearer what the behavior is.
Diffstat (limited to 'src/user.rs')
-rw-r--r--src/user.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user.rs b/src/user.rs
index 7aac1b4..df785be 100644
--- a/src/user.rs
+++ b/src/user.rs
@@ -2,7 +2,7 @@ use users;
 
 lazy_static! {
     pub static ref NAME: String = users::get_current_username()
-        .unwrap()
+        .expect("Could not get username")
         .into_string()
-        .unwrap();
+        .expect("Could not get username");
 }