Skip to content

Commit

Permalink
Merge pull request #69 from Anders429/doc_ci
Browse files Browse the repository at this point in the history
Check documentation on CI.
  • Loading branch information
Anders429 authored Mar 18, 2022
2 parents 1fb7728 + ac85fef commit fb0e3bc
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,36 @@ jobs:
command: hack
args: clippy --feature-powerset --optional-deps -- --deny warnings

doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps --all-features
env:
RUSTDOCFLAGS: --cfg doc_cfg -D warnings

private_doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps --all-features --document-private-items
env:
RUSTDOCFLAGS: --cfg doc_cfg -D warnings

msrv:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 2 additions & 0 deletions src/query/view/assertion_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ impl AssertionBuffer {
/// Create a new empty buffer.
///
/// It is recommended to use [`with_capacity`] if possible, as it will save allocations.
///
/// [`with_capacity`]: AssertionBuffer::with_capacity()
#[cfg(feature = "parallel")]
pub(crate) fn new() -> Self {
Self::with_capacity(0)
Expand Down
3 changes: 1 addition & 2 deletions src/registry/seal/assertions.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//! This module defines and implements assertions on a [`Registry`].
//!
//! All assertions on invariants that must be upheld by a `Registry` should be included within the
//! `Assertions` trait defined here. This trait acts as an extension to the [`registry::Seal`]
//! `Assertions` trait defined here. This trait acts as an extension to the `registry::Seal`
//! trait, implementing it on all registries.
//!
//! [`Registry`]: crate::registry::Registry
//! [`registry::Seal`]: crate::registry::seal::Seal;

use crate::{component::Component, registry::Null};
use core::any::TypeId;
Expand Down

0 comments on commit fb0e3bc

Please sign in to comment.