aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/check_platform_reqs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart/src/commands/check_platform_reqs.rs')
-rw-r--r--crates/mozart/src/commands/check_platform_reqs.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crates/mozart/src/commands/check_platform_reqs.rs b/crates/mozart/src/commands/check_platform_reqs.rs
index a890e0c..e3d432a 100644
--- a/crates/mozart/src/commands/check_platform_reqs.rs
+++ b/crates/mozart/src/commands/check_platform_reqs.rs
@@ -1,7 +1,7 @@
use clap::Args;
use mozart_core::console::{Console, Verbosity};
use std::collections::BTreeMap;
-use std::path::{Path, PathBuf};
+use std::path::Path;
#[derive(Args)]
pub struct CheckPlatformReqsArgs {
@@ -58,10 +58,7 @@ pub async fn execute(
cli: &super::Cli,
console: &mozart_core::console::Console,
) -> anyhow::Result<()> {
- let working_dir = match &cli.working_dir {
- Some(dir) => PathBuf::from(dir),
- None => std::env::current_dir()?,
- };
+ let working_dir = cli.working_dir()?;
// Validate format
let format = args.format.as_deref().unwrap_or("text");