From 526953cd87cb340b20049df87bca0c604899e82e Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Thu, 1 Feb 2024 19:16:48 +0900 Subject: [PATCH] cli: print "workspace root" without loading repo --- cli/src/commands/workspace.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/commands/workspace.rs b/cli/src/commands/workspace.rs index bdb61e640..592aee161 100644 --- a/cli/src/commands/workspace.rs +++ b/cli/src/commands/workspace.rs @@ -270,8 +270,8 @@ fn cmd_workspace_root( command: &CommandHelper, _args: &WorkspaceRootArgs, ) -> Result<(), CommandError> { - let workspace_command = command.workspace_helper(ui)?; - let root = workspace_command + let root = command + .workspace_loader()? .workspace_root() .to_str() .ok_or_else(|| user_error("The workspace root is not valid UTF-8"))?;