Update rust.yml

cargo fmt --all --check 中--check为检查模式,如果有对应的格式化修改,则命令返回码为非零(错误),所以导致action运行失败,替换为cargo fmt --all即可解决问题。
This commit is contained in:
mirschao
2024-10-11 22:25:25 +08:00
committed by GitHub
parent 3adbadd808
commit c9f07fb8ab

View File

@@ -88,7 +88,10 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: cargo fmt
run: cargo fmt --all --check
run: cargo fmt --all
- name: cargo check
run: cargo --check
- name: cargo clippy
run: cargo clippy -- -D warnings