Skip to content

Commit 92e39e7

Browse files
committed
muvm: move prepare_env_vars up
Move prepare_env_vars up in the main function, since in the next commit we're going to need the vector to be available earlier. Signed-off-by: Sergio Lopez <[email protected]>
1 parent 6607f1e commit 92e39e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/muvm/src/bin/muvm.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ fn main() -> Result<()> {
8888
} => (cookie, lock_file, command, command_args, env),
8989
};
9090

91+
let mut env = prepare_env_vars(env).context("Failed to prepare environment variables")?;
92+
9193
{
9294
// Set the log level to "off".
9395
//
@@ -371,7 +373,6 @@ fn main() -> Result<()> {
371373
muvm_guest_args.push(arg);
372374
}
373375

374-
let mut env = prepare_env_vars(env).context("Failed to prepare environment variables")?;
375376
env.insert(
376377
"MUVM_SERVER_PORT".to_owned(),
377378
options.server_port.to_string(),

0 commit comments

Comments
 (0)