Skip to content

Commit 462413d

Browse files
committed
Change missing_docs from deny to warn.
It is annoying to get hard errors while developing, it prevents testing things out without documenting them because it fails the build. This changes it to warn, which has the same effect in CI (because it already has `RUSTFLAGS: '--deny warnings'`), but still allows buildilng.
1 parent d04a2ed commit 462413d

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

embedded-hal-async/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! **NOTE** The traits and modules in this crate should follow the same structure as in
88
//! `embedded-hal` to ease merging and migration.
99
10-
#![deny(missing_docs)]
10+
#![warn(missing_docs)]
1111
#![no_std]
1212
#![feature(generic_associated_types)]
1313
#![feature(type_alias_impl_trait)]

src/lib.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350
//! # fn main() {}
351351
//! ```
352352
353-
#![deny(missing_docs)]
353+
#![warn(missing_docs)]
354354
#![no_std]
355355

356356
pub mod fmt;
@@ -361,11 +361,3 @@ pub mod digital;
361361
pub mod i2c;
362362
pub mod serial;
363363
pub mod spi;
364-
365-
mod private {
366-
use crate::i2c::{SevenBitAddress, TenBitAddress};
367-
pub trait Sealed {}
368-
369-
impl Sealed for SevenBitAddress {}
370-
impl Sealed for TenBitAddress {}
371-
}

0 commit comments

Comments
 (0)