From 2534e480bf4de2101f390beded67493565913238 Mon Sep 17 00:00:00 2001 From: Rory Dudley Date: Sat, 30 Mar 2024 23:20:03 -0600 Subject: 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. --- src/main.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/main.rs') 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>, 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 -- cgit v1.2.3