From bb1283222eaf15cf7efe074f57ebcdb7a265e7fa Mon Sep 17 00:00:00 2001 From: Tamo Date: Tue, 30 Jul 2024 15:10:56 +0200 Subject: [PATCH] make clippy happy --- meilisearch/tests/common/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }