|
13 | 13 | use std::{fmt::Debug, path::Path}; |
14 | 14 |
|
15 | 15 | use async_trait::async_trait; |
16 | | - |
17 | | -use crate::{cucumber::DefaultCucumber, step, Cucumber, Step, World}; |
18 | | - |
19 | 16 | pub use futures::future::LocalBoxFuture; |
20 | 17 | pub use inventory::{self, collect, submit}; |
21 | 18 | pub use regex::Regex; |
22 | 19 |
|
| 20 | +use crate::{Cucumber, cucumber::DefaultCucumber, step, Step, World}; |
| 21 | + |
23 | 22 | /// [`World`] extension with auto-wiring capabilities. |
24 | 23 | #[async_trait(?Send)] |
25 | | -#[cfg_attr(docsrs, doc(cfg(feature = "macros")))] |
26 | 24 | pub trait WorldInit<G, W, T>: WorldInventory<G, W, T> |
27 | 25 | where |
28 | 26 | Self: Debug, |
@@ -124,7 +122,6 @@ where |
124 | 122 | } |
125 | 123 |
|
126 | 124 | /// [`World`] extension allowing to register steps in [`inventory`]. |
127 | | -#[cfg_attr(docsrs, doc(cfg(feature = "macros")))] |
128 | 125 | pub trait WorldInventory<G, W, T>: World |
129 | 126 | where |
130 | 127 | G: StepConstructor<Self> + inventory::Collect, |
@@ -186,7 +183,6 @@ where |
186 | 183 | /// [`given`]: crate::given |
187 | 184 | /// [`when`]: crate::when |
188 | 185 | /// [`then`]: crate::then |
189 | | -#[cfg_attr(docsrs, doc(cfg(feature = "macros")))] |
190 | 186 | pub trait StepConstructor<W> { |
191 | 187 | /// Creates a new [`Step`] with the corresponding [`Regex`]. |
192 | 188 | #[must_use] |
|
0 commit comments