mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 10:07:40 +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());
|
||||
|
||||
impl Server<Owned> {
|
||||
fn to_shared(self) -> Server<Shared> {
|
||||
fn into_shared(self) -> Server<Shared> {
|
||||
Server { service: self.service, _dir: self._dir, _marker: PhantomData }
|
||||
}
|
||||
|
||||
@ -199,7 +199,7 @@ impl Server<Shared> {
|
||||
.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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user