We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fabeb16 commit 3e8799bCopy full SHA for 3e8799b
src/utils.rs
@@ -7,7 +7,7 @@ pub(crate) fn get_home_dir() -> Option<String> {
7
// set `true` and pattern starts with `~` followed by any char expect `/`
8
pub(crate) fn get_user_name() -> Option<String> {
9
#[cfg(not(target_os = "windows"))]
10
- return std::env::var("USER").ok();
+ { std::env::var("USER").ok() }
11
#[cfg(target_os = "windows")]
12
std::env::var("USERNAME").ok()
13
}
0 commit comments