diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d311b23d..23d5dcd9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,6 +48,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt - name: Check formatting run: cargo fmt --all -- --check Check: @@ -74,7 +76,8 @@ jobs: - arm-linux-androideabi - arm64_32-apple-watchos - armv7-linux-androideabi - - armv7-sony-vita-newlibeabihf + # Broken, see https://github.com/rust-lang/rust/issues/147437. + #- armv7-sony-vita-newlibeabihf - armv7-unknown-linux-ohos - i686-linux-android # Broken, see https://github.com/rust-lang/socket2/issues/539. @@ -117,6 +120,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + with: + components: clippy - name: Run Clippy run: cargo clippy --all-targets --all-features -- -D warnings CheckExternalTypes: diff --git a/src/lib.rs b/src/lib.rs index a0a56a52..13154acd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,7 +54,7 @@ #![deny(missing_docs, missing_debug_implementations, rust_2018_idioms)] // Automatically generate required OS/features for docs.rs. -#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] // Disallow warnings when running tests. #![cfg_attr(test, deny(warnings))] // Disallow warnings in examples.