Skip to content

Commit a14e40a

Browse files
committed
Fix prelude
1 parent 4543b44 commit a14e40a

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ pub mod errors;
235235
pub mod indexes;
236236
/// Module containing the [`key::Key`] struct.
237237
pub mod key;
238-
/// Module that preludes HttpClient traits.
238+
/// Module that prelude HttpClient traits.
239239
pub mod prelude;
240240
pub mod request;
241241
/// Module related to search queries and results.

src/prelude.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
pub use client::*;
2-
3-
use crate::{client, indexes, request};
4-
51
#[cfg(feature = "isahc")]
62
#[cfg(not(target_arch = "wasm32"))]
7-
pub type Client = client::Client<request::IsahcClient>;
3+
pub type Client = crate::client::Client<crate::request::IsahcClient>;
84
#[cfg(feature = "isahc")]
95
#[cfg(not(target_arch = "wasm32"))]
10-
pub type Index = indexes::Index<request::IsahcClient>;
6+
pub type Index = crate::indexes::Index<crate::request::IsahcClient>;
117

128
#[cfg(target_arch = "wasm32")]
13-
pub type Client = client::Client<request::WebSysClient>;
9+
pub type Client = crate::client::Client<crate::request::WebSysClient>;
1410
#[cfg(target_arch = "wasm32")]
15-
pub type Index = indexes::Index<request::WebSysClient>;
11+
pub type Index = crate::indexes::Index<crate::request::WebSysClient>;

0 commit comments

Comments
 (0)