Skip to content

Commit f6cd75e

Browse files
authored
Explicitly install required components in CI and switch from the doc_auto_cfg feature to the doc_cfg feature. (#163)
* Explicitly install rustfmt inthe format job in CI * Update rust.yml * Explicitly install clippy * Switch usage of the doc_auto_cfg feature to use the doc_cfg feature
1 parent f8edaf7 commit f6cd75e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121
- uses: dtolnay/rust-toolchain@stable
22+
with:
23+
components: rustfmt
2224
- name: Cache
2325
uses: Swatinem/[email protected]
2426
- name: Format
@@ -42,6 +44,8 @@ jobs:
4244
steps:
4345
- uses: actions/checkout@v4
4446
- uses: dtolnay/rust-toolchain@stable
47+
with:
48+
components: clippy
4549
- name: Cache
4650
uses: Swatinem/[email protected]
4751
- name: Run clippy

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
//! `rkyv`: derives the [`Serialize`](rkyv::Serialize), [`Deserialize`](rkyv::Deserialize), and [`Archive`](rkyv::Archive) traits from the [`rkyv`] crate for the [`Primes`] struct.
105105
106106
#![no_std]
107-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
107+
#![cfg_attr(docsrs, feature(doc_cfg))]
108108

109109
/// The type that `Primes<N>` stores, and `primes::<N>()` returns. Currently `u32`.
110110
// Just change this to whatever unsigned primitive integer type you want and it should work as long as it has enough bits for your purposes.

0 commit comments

Comments
 (0)