Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ edition = "2024"
rust-version = "1.85"
exclude = ["/.github"]

[lints.rust]
missing_docs = "warn"
missing_debug_implementations = "warn"

[lints.clippy]
undocumented_unsafe_blocks = "warn"

[package.metadata.docs.rs]
# To build locally:
# cargo +nightly doc --open
Expand Down
5 changes: 0 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
html_favicon_url = "https://www.rust-lang.org/favicon.ico"
)]
#![deny(
missing_docs,
missing_debug_implementations,
clippy::undocumented_unsafe_blocks
)]

use core::ops::DerefMut;

Expand Down
6 changes: 4 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
//! In many cases, [`SeedableRng::Seed`] must be converted to `[u32; _]` or
//! `[u64; _]`. [`read_words`] may be used for this.
//!
//! [`SeedableRng`]: crate::SeedableRng
//! [`SeedableRng::Seed`]: crate::SeedableRng::Seed
//!
//! ## Example
//!
//! We demonstrate a simple multiplicative congruential generator (MCG), taken
Expand Down Expand Up @@ -83,9 +86,8 @@
//! # assert_eq!(buf, [154, 23, 43, 68, 75]);
//! ```

use crate::TryRng;
pub use crate::word::Word;
#[allow(unused)]
use crate::{SeedableRng, TryRng};

/// Generate a `u64` using `next_u32`, little-endian order.
#[inline]
Expand Down
1 change: 1 addition & 0 deletions tests/block.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Tests for the `block` module items
use rand_core::{
SeedableRng,
block::{BlockRng, Generator},
Expand Down
1 change: 1 addition & 0 deletions tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Main `rand_core` tests
use rand_core::{CryptoRng, Infallible, Rng, SeedableRng, TryCryptoRng, TryRng, UnwrapErr, utils};

#[test]
Expand Down
1 change: 1 addition & 0 deletions tests/utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Tests for the `utils` module items
use rand_core::{Infallible, Rng, TryRng, utils};

struct DummyRng(u32);
Expand Down