fix potential panic on shutdown when mux_enable_ssh_agent=true #2772
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: fmt | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "**/*.rs" | |
- ".github/workflows/fmt.yml" | |
push: | |
branches: | |
- main | |
paths: | |
- "**/*.rs" | |
- ".github/workflows/fmt.yml" | |
jobs: | |
check-code-formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: "Install Rust" | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt | |
- name: Build | |
run: | | |
source $HOME/.cargo/env | |
cargo +nightly fmt --all -- --check | |