diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6e10b6a..e2550be 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,36 +11,30 @@ jobs: - macos-latest - windows-latest runs-on: ${{ matrix.os }} - steps: - uses: actions/checkout@v4 - - name: Cargo build - uses: actions-rs/cargo@v1 - with: - command: build - args: --workspace --all-targets + run: cargo build --workspace --all-targets fmt: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 - - name: Cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: cargo fmt --all -- --check clippy: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 - - name: Cargo clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --workspace --all-targets -- -Dwarnings + run: cargo clippy --workspace --all-targets -- -Dwarnings + + doc: + runs-on: ubuntu-latest + env: + RUSTDOCFLAGS: -Dwarnings + steps: + - uses: actions/checkout@v4 + - name: Cargo doc + run: cargo doc --workspace diff --git a/src/lib.rs b/src/lib.rs index e501aa4..4c66cf9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,7 @@ mod ispc; pub trait ImagePixelFormat: Copy { /// Returns the number of channels that an image of this format would have in memory. - /// For example, while a normal map of format [`NormalMapFormat::R8g8TangentSpaceReconstructedZ`] would still have 3 channels when sampled, + /// For example, while a normal map of format [`NormalMapFormat::Rg8TangentSpaceReconstructedZ`] would still have 3 channels when sampled, /// in memory it will have 2 channels. fn num_channel_in_memory(self) -> usize;