mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-14 00:00:12 +02:00
`cargo fmt` has a bug where it does not format modules scoped with feature flags.
19 lines
512 B
YAML
19 lines
512 B
YAML
jobs:
|
|
# Check formatting
|
|
- job: ${{ parameters.name }}
|
|
displayName: Check rustfmt
|
|
pool:
|
|
vmImage: ubuntu-16.04
|
|
steps:
|
|
- template: azure-install-rust.yml
|
|
parameters:
|
|
rust_version: ${{ parameters.rust }}
|
|
- script: |
|
|
rustup component add rustfmt
|
|
cargo fmt --version
|
|
displayName: Install rustfmt
|
|
- script: |
|
|
# Workaround for rust-lang/cargo#7732
|
|
rustfmt --check --edition 2018 $(find . -name '*.rs' -print)
|
|
displayName: Check formatting
|