Skip to content

Commit

Permalink
Remove prelude.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirbaio committed Jun 15, 2021
1 parent b60c39a commit da2fdbb
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 48 deletions.
2 changes: 1 addition & 1 deletion src/blocking/pwm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/// ```
/// extern crate embedded_hal as hal;
///
/// use hal::prelude::*;
/// use hal::blocking::pwm::Pwm;
///
/// fn main() {
/// let mut pwm: Pwm1 = {
Expand Down
3 changes: 2 additions & 1 deletion src/blocking/qei.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
/// #[macro_use(block)]
/// extern crate nb;
///
/// use hal::prelude::*;
/// use hal::blocking::qei::Qei;
/// use hal::nb::timer::CountDown;
///
/// fn main() {
/// let mut qei: Qei1 = {
Expand Down
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
//! ```
//! use embedded_hal as hal;
//! use nb::block;
//! use hal::prelude::*;
//! use hal::nb::serial::Write;
//!
//! fn write_all<S>(serial: &mut S, buffer: &[u8]) -> Result<(), S::Error>
//! where
Expand All @@ -266,7 +266,8 @@
//! use embedded_hal as hal;
//! use nb;
//!
//! use hal::prelude::*;
//! use hal::nb::serial::Write;
//! use hal::nb::timer::CountDown;
//!
//! enum Error<SE, TE> {
//! /// Serial interface error
Expand Down Expand Up @@ -320,7 +321,7 @@
//! use embedded_hal as hal;
//! use nb;
//!
//! use hal::prelude::*;
//! use hal::nb::serial::Write;
//! use ::core::convert::Infallible;
//!
//! fn flush<S>(serial: &mut S, cb: &mut CircularBuffer)
Expand Down Expand Up @@ -411,7 +412,6 @@
pub mod blocking;
pub mod fmt;
pub mod nb;
pub mod prelude;

mod private {
use crate::blocking::i2c::{SevenBitAddress, TenBitAddress};
Expand Down
2 changes: 1 addition & 1 deletion src/nb/capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/// #[macro_use(block)]
/// extern crate nb;
///
/// use hal::prelude::*;
/// use hal::nb::capture::Capture;
///
/// fn main() {
/// let mut capture: Capture1 = {
Expand Down
2 changes: 1 addition & 1 deletion src/nb/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/// #[macro_use(block)]
/// extern crate nb;
///
/// use hal::prelude::*;
/// use hal::nb::timer::CountDown;
///
/// fn main() {
/// let mut led: Led = {
Expand Down
40 changes: 0 additions & 40 deletions src/prelude.rs

This file was deleted.

0 comments on commit da2fdbb

Please sign in to comment.