diff --git a/generator/src/lib.rs b/generator/src/lib.rs index 8b31944..84ffd2c 100644 --- a/generator/src/lib.rs +++ b/generator/src/lib.rs @@ -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"); //! ``` diff --git a/src/lib.rs b/src/lib.rs index 1e067fd..1b83aac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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.