diff options
author | Ben Morrison <ben@gbmor.dev> | 2020-05-26 19:43:37 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2020-05-26 19:43:37 -0400 |
commit | c5ea65393d9b8000d68cf8c2f887f22bdae81222 (patch) | |
tree | 4a044312814ce7b70c6d9af0a7e32b3860ee9425 /src/user.rs | |
parent | a24e25977e713fbc5a06778ada4c21202209a598 (diff) | |
download | clinte-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.rs | 4 |
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"); } |