diff options
author | Rory Dudley | 2024-03-30 23:20:03 -0600 |
---|---|---|
committer | Rory Dudley | 2024-03-30 23:20:03 -0600 |
commit | 2534e480bf4de2101f390beded67493565913238 (patch) | |
tree | afbd0f998114e22f4f65868ef895bf4d31b9f212 /src/main.rs | |
parent | 90b4e0226d49f4f61300f91b6a9b1e7978bd2f9b (diff) | |
download | dwarvish-2534e480bf4de2101f390beded67493565913238.tar.gz |
Replace env!("HOME") with env::var("HOME")
Replaced all (non-test) instances of env!("HOME") with env::var("HOME").
The env! macro should only be used in instances where the environment
variable should be resolved during compile time.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 898d19e..c17f959 100644 --- a/src/main.rs +++ b/src/main.rs @@ -80,8 +80,6 @@ fn repl(prompt: &str, at_prompt: &mut Arc<Mutex<bool>>, env: &mut Environment) { /// Shell setup and entry fn main() { // Compose the environment for dwvsh - // TODO: All instances of `env!("HOME")` need to be changed to use env::var - // TODO: Will probably need to set $HOME in dwv{profile,login} via passwd let mut env = compose::env(); // Set the prompt |