Skip to content

Commit

Permalink
Move prelude in kvarn_testing: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Icelk committed Jul 19, 2023
1 parent e536846 commit ddd5a3f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions testing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,15 @@ impl From<(Extensions, host::Options)> for ServerBuilder {
}
}

/// The testing prelude.
/// Also imports `kvarn::prelude::*`.
pub mod prelude {
pub use super::{Server, ServerBuilder};
#[doc(hidden)]
pub use kvarn::prelude::*;
pub use reqwest;
}

#[cfg(test)]
mod tests {
use super::ServerBuilder;
Expand Down Expand Up @@ -344,12 +353,3 @@ mod tests {
simple_request(&server).await;
}
}

/// The testing prelude.
/// Also imports `kvarn::prelude::*`.
pub mod prelude {
pub use super::{Server, ServerBuilder};
#[doc(hidden)]
pub use kvarn::prelude::*;
pub use reqwest;
}

0 comments on commit ddd5a3f

Please sign in to comment.