Skip to content

update phf::PhfMap to phf::Map #12

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

Merged
merged 2 commits into from
Nov 1, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! # Usage
//!
//! ```
//! let mimes: PhfMap<&'static str, RawMediaType>
//! let mimes: phf::Map<&'static str, RawMediaType>
//! = mime_map!("http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types");
//! ```

Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ extern crate phf;

use generator::RawMediaType;
use http::headers::content_type::MediaType;
use phf::PhfMap;

static MIMES: PhfMap<&'static str, RawMediaType>
static MIMES: phf::Map<&'static str, RawMediaType>
= mime_map!("http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types");

/// Get the rust-http MediaType associated with this extension.
Expand Down