meilisearch / meilisearch-rust

Rust wrapper for the Meilisearch API.

Home Page:https://www.meilisearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FacetingSettings: Deserialize<'de>` is not satisfied

JaydenElliott opened this issue · comments

Description
I have spun up an empty project with meilisearch-sdk 0.22, no other libs. When trying to build I get the following error

error: unexpected end of input, unexpected token in nested attribute, expected ident
  --> /home/jaydenelliott/.cargo/registry/src/github.com-1ecc6299db9ec823/meilisearch-sdk-0.22.0/src/settings.rs:19:13
   |
19 |     #[serde()]
   |             ^

error[E0277]: the trait bound `for<'de> FacetingSettings: Deserialize<'de>` is not satisfied
   --> /home/jaydenelliott/.cargo/registry/src/github.com-1ecc6299db9ec823/meilisearch-sdk-0.22.0/src/settings.rs:538:27
    |
538 |         request::<(), (), FacetingSettings>(
    |                           ^^^^^^^^^^^^^^^^ the trait `for<'de> Deserialize<'de>` is not implemented for `FacetingSettings`

Environment (please complete the following information):

  • PopOs
  • meilisearch-rust version: 0.22

Hey @JaydenElliott

Indeed, this is due to a new serde patch version that breaks our build.
It is fixed here #448.

fixed by: #448
and release in v0.22.1