Skip to content

Commit 6057c93

Browse files
committed
Log entry 1
Today I learned that `rustfmt` is now a part of `rustup`. So I need to actually look it up in PATH instead of using `cargo-fmt`. I also learned that `mk` is the file that does the main work and is shared by `cargo-new` and `cargo-init`, as expected. Printing inside `mk` produces output as expected.
1 parent 9826222 commit 6057c93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cargo/ops/cargo_new.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,8 @@ fn init_vcs(path: &Path, vcs: VersionControl, config: &Config) -> CargoResult<()
573573
}
574574

575575
fn mk(config: &Config, opts: &MkOptions<'_>) -> CargoResult<()> {
576+
println!("Entering 'mk'");
577+
576578
let path = opts.path;
577579
let name = opts.name;
578580
let cfg = config.get::<CargoNewConfig>("cargo-new")?;
@@ -719,6 +721,8 @@ mod tests {
719721
config.shell().warn(msg)?;
720722
}
721723

724+
println!("Leaving 'mk'");
725+
722726
Ok(())
723727
}
724728

0 commit comments

Comments
 (0)