File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use core::{
10
10
11
11
use pinned_init:: * ;
12
12
mod error;
13
- pub use error:: Error ;
13
+ use error:: Error ;
14
14
15
15
#[ pin_data( PinnedDrop ) ]
16
16
#[ repr( C ) ]
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ use pinned_init::*;
17
17
#[ allow( unused_attributes) ]
18
18
#[ path = "./linked_list.rs" ]
19
19
pub mod linked_list;
20
- pub use linked_list:: Error ;
21
20
use linked_list:: * ;
22
21
23
22
pub struct SpinLock {
Original file line number Diff line number Diff line change 125
125
//! # #![allow(clippy::disallowed_names)]
126
126
//! # #![feature(allocator_api)]
127
127
//! # use pinned_init::*;
128
+ //! # #[path = "../examples/error.rs"] mod error; use error::Error;
128
129
//! # #[path = "../examples/mutex.rs"] mod mutex; use mutex::*;
129
130
//! #[pin_data]
130
131
//! struct DriverData {
@@ -331,6 +332,7 @@ macro_rules! stack_pin_init {
331
332
/// ```rust
332
333
/// # #![allow(clippy::disallowed_names)]
333
334
/// # #![feature(allocator_api)]
335
+ /// # #[path = "../examples/error.rs"] mod error; use error::Error;
334
336
/// # #[path = "../examples/mutex.rs"] mod mutex; use mutex::*;
335
337
/// # use pinned_init::*;
336
338
/// #[pin_data]
@@ -357,6 +359,7 @@ macro_rules! stack_pin_init {
357
359
/// ```rust
358
360
/// # #![allow(clippy::disallowed_names)]
359
361
/// # #![feature(allocator_api)]
362
+ /// # #[path = "../examples/error.rs"] mod error; use error::Error;
360
363
/// # #[path = "../examples/mutex.rs"] mod mutex; use mutex::*;
361
364
/// # use pinned_init::*;
362
365
/// #[pin_data]
@@ -671,6 +674,7 @@ macro_rules! try_pin_init {
671
674
///
672
675
/// ```rust
673
676
/// # #![feature(allocator_api)]
677
+ /// # #[path = "../examples/error.rs"] mod error; use error::Error;
674
678
/// # #[path = "../examples/mutex.rs"] mod mutex; use mutex::*;
675
679
/// use pinned_init::*;
676
680
/// struct BigBuf {
You can’t perform that action at this time.
0 commit comments