Skip to content

Use rust::String::lossy for stringification to avoid crashing due to … #728

Use rust::String::lossy for stringification to avoid crashing due to …

Use rust::String::lossy for stringification to avoid crashing due to … #728

Workflow file for this run

name: Rust Formatting
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
types:
- opened
- reopened
- synchronize
- ready_for_review
env:
CARGO_TERM_COLOR: always
jobs:
formatting:
name: Check Formatting
runs-on: ubuntu-latest
if: github.event_name == 'push' || !github.event.pull_request.draft
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2023-12-30
components: rustfmt
- name: Cargo fmt
run: |
cargo fmt -- --check