Skip to content

Commit 378737f

Browse files
committed
Replace qualified path to Client with use
1 parent 51075d0 commit 378737f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/documents.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,18 @@ pub use meilisearch_index_setting_macro::Document;
4949

5050
use crate::settings::Settings;
5151
use crate::tasks::Task;
52+
use crate::Client;
5253
use crate::{errors::Error, indexes::Index};
5354

5455
#[async_trait]
5556
pub trait Document {
5657
const INDEX_STR: &'static str;
5758

58-
fn index(client: &crate::client::Client) -> Index {
59+
fn index(client: &Client) -> Index {
5960
client.index(Self::INDEX_STR)
6061
}
6162
fn generate_settings() -> Settings;
62-
async fn generate_index(client: &crate::client::Client) -> Result<Index, Task>;
63+
async fn generate_index(client: &Client) -> Result<Index, Task>;
6364
}
6465

6566
#[derive(Debug, Clone, Deserialize)]

0 commit comments

Comments
 (0)