xtask/commands/
cargo_fmt.rs

1use xshell::{cmd, Error, Shell};
2
3pub(crate) fn run(shell: &Shell) -> Result<(), Error> {
4    // extendr-api, extendr-macros, extendr-engine, xtask
5    cmd!(shell, "cargo fmt --all").run()?;
6    // extendrtests
7    cmd!(
8        shell,
9        "cargo fmt --all --manifest-path tests/extendrtests/src/rust/Cargo.toml"
10    )
11    .run()?;
12
13    Ok(())
14}