Skip to content

unresolved import phf::PhfMap. There is no PhfMap in phf #11

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

Closed
daniel-ferguson opened this issue Nov 1, 2014 · 2 comments
Closed

unresolved import phf::PhfMap. There is no PhfMap in phf #11

daniel-ferguson opened this issue Nov 1, 2014 · 2 comments

Comments

@daniel-ferguson
Copy link
Contributor

Phf seems to have changed interface a bit.

phf::PhfMap is now phf::Map

I'm not very well versed in rust but I assume you want to drop use phf::PhfMap and change line 22 in src/lib.rs from:
static MIMES: PhfMap<&'static str, RawMediaType>
to
static MIMES: phf::Map<&'static str, RawMediaType>

I'm guessing line 20 is redundant (compiles with and without once changed to use phf::Map.
Does use phf::Map override std::collections::Map?

Hopefully helpful.
Thanks!

@reem
Copy link
Owner

reem commented Nov 1, 2014

std::collections::Map has been removed. Thanks for the fix!

@reem reem closed this as completed Nov 1, 2014
@daniel-ferguson
Copy link
Contributor Author

Ah, right. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants