ci: Use rustup run for cargo-sort for consistency

This commit is contained in:
Jonas Platte 2021-05-15 15:45:23 +02:00
parent 3878476317
commit e1ab817e0b
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -55,7 +55,7 @@ impl CiTask {
fn build_nightly(&self) -> xshell::Result<()> {
let fmt_res = cmd!("rustup run nightly cargo fmt -- --check").run();
let clippy_res = cmd!("rustup run nightly cargo ruma-clippy -D warnings").run();
let sort_res = cmd!("cargo sort --workspace --grouped --check").run();
let sort_res = cmd!("rustup run nightly cargo sort --workspace --grouped --check").run();
fmt_res.and(clippy_res).and(sort_res)
}