diff --git a/.azure/azure-pipelines.yml b/.azure/azure-pipelines.yml index 5a87327166..851259b43e 100644 --- a/.azure/azure-pipelines.yml +++ b/.azure/azure-pipelines.yml @@ -20,8 +20,9 @@ steps: export PATH=$HOME/.cargo/bin:$PATH rustc -Vv echo "##vso[task.prependpath]$HOME/.cargo/bin" + rustup component add rustfmt --toolchain `cat rust-toolchain` displayName: Install Rust - bash: RUSTFLAGS="-D warnings" cargo test --all-features displayName: Run tests - - bash: cargo fmt + - bash: cargo fmt --all -- --check displayName: Lint