Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Update Rust crate relative-path to 1.9.3 #769

Update Rust crate relative-path to 1.9.3

Update Rust crate relative-path to 1.9.3 #769

Workflow file for this run

on: [push]
name: Revise codebase
jobs:
code_fix:
name: Revise codebase
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
components: clippy, rustfmt
- name: Revise code files
uses: actions-rs/cargo@v1
with:
command: fix
args: --edition --edition-idioms
- name: Apply lints
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features --fix -- -D warnings
- name: Commit changes to code, if any
run: |
git config --global user.name 'Dokkoo'
git config --global user.email '[email protected]'
git diff --quiet && git diff --staged --quiet || git commit -am "Automatically apply compiler suggestions"
git push