Skip to content

Commit 3e8799b

Browse files
Update src/utils.rs
Co-authored-by: Rene Leonhardt <[email protected]>
1 parent fabeb16 commit 3e8799b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub(crate) fn get_home_dir() -> Option<String> {
77
// set `true` and pattern starts with `~` followed by any char expect `/`
88
pub(crate) fn get_user_name() -> Option<String> {
99
#[cfg(not(target_os = "windows"))]
10-
return std::env::var("USER").ok();
10+
{ std::env::var("USER").ok() }
1111
#[cfg(target_os = "windows")]
1212
std::env::var("USERNAME").ok()
1313
}

0 commit comments

Comments
 (0)