mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-02-17 00:00:11 +08:00
make clippy happy
This commit is contained in:
parent
7a5a38f870
commit
bb1283222e
@ -37,7 +37,7 @@ pub struct Server<State = Owned> {
|
|||||||
pub static TEST_TEMP_DIR: Lazy<TempDir> = Lazy::new(|| TempDir::new().unwrap());
|
pub static TEST_TEMP_DIR: Lazy<TempDir> = Lazy::new(|| TempDir::new().unwrap());
|
||||||
|
|
||||||
impl Server<Owned> {
|
impl Server<Owned> {
|
||||||
fn to_shared(self) -> Server<Shared> {
|
fn into_shared(self) -> Server<Shared> {
|
||||||
Server { service: self.service, _dir: self._dir, _marker: PhantomData }
|
Server { service: self.service, _dir: self._dir, _marker: PhantomData }
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -199,7 +199,7 @@ impl Server<Shared> {
|
|||||||
.get_or_init(|| async {
|
.get_or_init(|| async {
|
||||||
let mut server = Server::new_auth().await;
|
let mut server = Server::new_auth().await;
|
||||||
server.use_admin_key("MASTER_KEY").await;
|
server.use_admin_key("MASTER_KEY").await;
|
||||||
server.to_shared()
|
server.into_shared()
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user