Skip to content

refactor: replace IpVersion::to_socket_addr with Into<IpAddr> bound #61

refactor: replace IpVersion::to_socket_addr with Into<IpAddr> bound

refactor: replace IpVersion::to_socket_addr with Into<IpAddr> bound #61

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
fmt:
name: rustfmt / stable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Rust rustfmt
run: cargo fmt --all -- --check
clippy:
name: clippy / nightly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Run clippy
run: cargo clippy -- -D warnings
test:
name: test / ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: stable
rust: stable
- name: beta
rust: beta
- name: nightly
rust: nightly
- name: MSRV 1.70
rust: '1.70'
steps:
- uses: actions/checkout@v4
- run: sudo $HOME/.cargo/bin/rustup default ${{ matrix.rust }}
- run: sudo env "PATH=$PATH" CI=1 $HOME/.cargo/bin/cargo test