Skip to content

Commit 4a4ff0c

Browse files
committed
use core instead of std
1 parent 750f0be commit 4a4ff0c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/adc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use nb;
1010
/// between the physical interface and the ADC sampling buffer.
1111
///
1212
/// ```
13-
/// # use std::marker::PhantomData;
13+
/// # use core::marker::PhantomData;
1414
/// # use embedded_hal::adc::Channel;
1515
///
1616
/// struct Adc1; // Example ADC with single bank of 8 channels

src/lib.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
//! # }
224224
//!
225225
//! # mod stm32f30x_hal {
226-
//! # use std::convert::Infallible;
226+
//! # use core::convert::Infallible;
227227
//! # pub struct Serial1;
228228
//! # impl Serial1 {
229229
//! # pub fn try_write(&mut self, _: u8) -> ::nb::Result<(), Infallible> {
@@ -255,7 +255,7 @@
255255
//! };
256256
//! use futures::future::Loop;
257257
//! use stm32f30x_hal::{Led, Serial1, Timer6};
258-
//! use std::convert::Infallible;
258+
//! use core::convert::Infallible;
259259
//!
260260
//! /// `futures` version of `CountDown.try_wait`
261261
//! ///
@@ -392,8 +392,8 @@
392392
//! #[macro_use(r#await)]
393393
//! extern crate nb;
394394
//!
395-
//! use std::ops::Generator;
396-
//! use std::pin::Pin;
395+
//! use core::ops::Generator;
396+
//! use core::pin::Pin;
397397
//!
398398
//! use hal::prelude::*;
399399
//! use stm32f30x_hal::{Led, Serial1, Timer6};
@@ -447,7 +447,7 @@
447447
//! }
448448
//!
449449
//! # mod stm32f30x_hal {
450-
//! # use std::convert::Infallible;
450+
//! # use core::convert::Infallible;
451451
//! # pub struct Serial1;
452452
//! # impl Serial1 {
453453
//! # pub fn try_read(&mut self) -> ::nb::Result<u8, Infallible> { Err(::nb::Error::WouldBlock) }
@@ -565,7 +565,7 @@
565565
//! #[macro_use(r#await)]
566566
//! extern crate nb;
567567
//!
568-
//! use std::ops::Generator;
568+
//! use core::ops::Generator;
569569
//!
570570
//! /// Transfers a byte buffer of size N
571571
//! ///
@@ -660,11 +660,11 @@
660660
//! # fn lock(&self) -> RefMut<T> { unimplemented!() }
661661
//! # }
662662
//! # struct RefMut<'a, T>(&'a mut T) where T: 'a;
663-
//! # impl<'a, T> ::std::ops::Deref for RefMut<'a, T> {
663+
//! # impl<'a, T> ::core::ops::Deref for RefMut<'a, T> {
664664
//! # type Target = T;
665665
//! # fn deref(&self) -> &T { self.0 }
666666
//! # }
667-
//! # impl<'a, T> ::std::ops::DerefMut for RefMut<'a, T> {
667+
//! # impl<'a, T> ::core::ops::DerefMut for RefMut<'a, T> {
668668
//! # fn deref_mut(&mut self) -> &mut T { self.0 }
669669
//! # }
670670
//! # struct Serial1;

0 commit comments

Comments
 (0)