fix take_drain to do what it says on the tin #429
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
on: [push, pull_request] | |
name: CI | |
jobs: | |
tests: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install cargo-hack | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-hack | |
- run: cargo hack check --feature-powerset --exclude-features rustc-dep-of-std | |
- run: cargo hack clippy --feature-powerset --exclude-features rustc-dep-of-std | |
- run: cargo hack test --feature-powerset --exclude-features rustc-dep-of-std | |
nightly-stuff: | |
name: nightly clippy, format and miri tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install nightly toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt, clippy, miri | |
- run: cargo +nightly fmt --all -- --check | |
- run: cargo +nightly clippy --no-default-features -- -D warnings | |
- run: cargo +nightly clippy -- -D warnings | |
- run: cargo +nightly miri test ringbuffer | |
- run: cargo +nightly miri test short_Writer | |