format
This commit is contained in:
parent
86963dcb76
commit
04893105df
|
@ -6,8 +6,7 @@ use serde::{Deserialize, Serialize};
|
||||||
pub fn get_home() -> String {
|
pub fn get_home() -> String {
|
||||||
let home = match std::env::consts::OS {
|
let home = match std::env::consts::OS {
|
||||||
"linux" => std::env::var("HOME").expect("how is there not a $HOME"),
|
"linux" => std::env::var("HOME").expect("how is there not a $HOME"),
|
||||||
"windows" => std::env::var("userprofile")
|
"windows" => std::env::var("userprofile").expect("yell at me if this doesn't work please"),
|
||||||
.expect("yell at me if this doesn't work please"),
|
|
||||||
_ => std::env::var("HOME").expect(
|
_ => std::env::var("HOME").expect(
|
||||||
"if this doesn't work, you're probably on macos, which i literally cannot test on",
|
"if this doesn't work, you're probably on macos, which i literally cannot test on",
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue