Skip to content

Commit 2179f94

Browse files
committed
Add 'warn(missing_docs)'
1 parent 7445f5d commit 2179f94

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@
124124
//! }
125125
//! ```
126126
127+
#![warn(missing_docs, unreachable_pub)]
128+
127129
pub mod duration;
128130
#[macro_use]
129131
pub mod macros;

src/macros.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Various helper macros.
2+
13
/// `compile_warning` macro is a brother of [`std::compile_error`],
24
/// which emits a compile-time warning with a provided message.
35
///

src/num/integer.rs

+3
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@ pub trait Integer:
4545
+ MulAssign
4646
+ Copy
4747
{
48+
/// The smallest value that can be represented by this integer type.
4849
const MIN: Self;
50+
/// The largest value that can be represented by this integer type.
4951
const MAX: Self;
52+
/// The size of this integer type in bits.
5053
const BITS: u32;
5154

5255
/// See [`u128::from_str_radix`].

0 commit comments

Comments
 (0)