diff --git a/meilisearch/tests/common/server.rs b/meilisearch/tests/common/server.rs index a5430db2f..ab3717e22 100644 --- a/meilisearch/tests/common/server.rs +++ b/meilisearch/tests/common/server.rs @@ -37,7 +37,7 @@ pub struct Server { pub static TEST_TEMP_DIR: Lazy = Lazy::new(|| TempDir::new().unwrap()); impl Server { - fn to_shared(self) -> Server { + fn into_shared(self) -> Server { Server { service: self.service, _dir: self._dir, _marker: PhantomData } } @@ -199,7 +199,7 @@ impl Server { .get_or_init(|| async { let mut server = Server::new_auth().await; server.use_admin_key("MASTER_KEY").await; - server.to_shared() + server.into_shared() }) .await }