Skip to content

Commit 0af1d21

Browse files
committed
refactor(embedded): Flatten parsing
This is a step towards making it easier to implement multiple fixes / features without conflicts.
1 parent f8fef7a commit 0af1d21

File tree

2 files changed

+191
-190
lines changed

2 files changed

+191
-190
lines changed

src/bin/cargo/commands/run.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ pub fn exec_manifest_command(config: &Config, cmd: &str, args: &[OsString]) -> C
101101
);
102102
}
103103
let manifest_path = crate::util::try_canonicalize(manifest_path)?;
104-
let script = cargo::util::toml::embedded::RawScript::parse_from(&manifest_path)?;
105-
let ws = script.to_workspace(config)?;
104+
let script = cargo::util::toml::embedded::parse_from(&manifest_path)?;
105+
let ws = cargo::util::toml::embedded::to_workspace(&script, config)?;
106106

107107
let mut compile_opts =
108108
cargo::ops::CompileOptions::new(config, cargo::core::compiler::CompileMode::Build)?;

0 commit comments

Comments
 (0)