Skip to content

Commit

Permalink
cli: print "workspace root" without loading repo
Browse files Browse the repository at this point in the history
  • Loading branch information
yuja committed Feb 1, 2024
1 parent 818a885 commit be5165b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/commands/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))?;
Expand Down

0 comments on commit be5165b

Please sign in to comment.