Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/walkdir.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2020-01-11 21:31:13 +0300
committerAndrew Gallant <jamslam@gmail.com>2020-01-11 21:31:49 +0300
commitc584a1d56c5f4b64019e1a4d70c5355e3212cc9b (patch)
treecfdd16307a87215dddf88a8c78fd96e7ca6b14fb /.github
parentdc7499a6c6667f469437b10e0549352652407e60 (diff)
style: switch to rustfmt
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml38
1 files changed, 19 insertions, 19 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index cbf53bc..b284608 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -67,22 +67,22 @@ jobs:
cargo build --verbose
cargo test --verbose
- # TODO: Switch to rustfmt for walkdir 3. walkdir 3 is in a
- # half-finished state, and applying rustfmt now would wreak havoc.
- # rustfmt:
- # name: rustfmt
- # runs-on: ubuntu-18.04
- # steps:
- # - name: Checkout repository
- # uses: actions/checkout@v1
- # with:
- # fetch-depth: 1
- # - name: Install Rust
- # uses: hecrj/setup-rust-action@v1
- # with:
- # rust-version: stable
- # - name: Install rustfmt
- # run: rustup component add rustfmt
- # - name: Check formatting
- # run: |
- # cargo fmt --all -- --check
+ rustfmt:
+ name: rustfmt
+ runs-on: ubuntu-18.04
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v1
+ with:
+ fetch-depth: 1
+ - name: Install Rust
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+ profile: minimal
+ components: rustfmt
+ - name: Install rustfmt
+ run: rustup component add rustfmt
+ - name: Check formatting
+ run: |
+ cargo fmt --all -- --check