@@ -30,7 +30,7 @@ fn main() {
3030 #[ cfg( feature = "phf" ) ]
3131 build_forward_map ( & mut outfile) ;
3232
33- #[ cfg( feature = "rev-mappings " ) ]
33+ #[ cfg( feature = "rev-map " ) ]
3434 build_rev_map ( & mut outfile) ;
3535}
3636
@@ -71,7 +71,7 @@ fn build_forward_map<W: Write>(out: &mut W) {
7171}
7272
7373// Build reverse mappings (mime type -> ext)
74- #[ cfg( all( feature = "phf" , feature = "rev-mappings " ) ) ]
74+ #[ cfg( all( feature = "phf" , feature = "rev-map " ) ) ]
7575fn build_rev_map < W : Write > ( out : & mut W ) {
7676 use phf_codegen:: Map as PhfMap ;
7777
@@ -114,7 +114,7 @@ fn build_rev_map<W: Write>(out: &mut W) {
114114 writeln ! ( out, "const EXTS: &'static [&'static str] = &{:?};" , exts) . unwrap ( ) ;
115115}
116116
117- #[ cfg( all( not( feature = "phf" ) , feature = "rev-mappings " ) ) ]
117+ #[ cfg( all( not( feature = "phf" ) , feature = "rev-map " ) ) ]
118118fn build_rev_map < W : Write > ( out : & mut W ) {
119119 use std:: fmt:: Write as _;
120120
@@ -166,7 +166,7 @@ fn build_rev_map<W: Write>(out: &mut W) {
166166 writeln ! ( out, "const EXTS: &'static [&'static str] = &{:?};" , exts) . unwrap ( ) ;
167167}
168168
169- #[ cfg( feature = "rev-mappings " ) ]
169+ #[ cfg( feature = "rev-map " ) ]
170170fn get_rev_mappings (
171171) -> BTreeMap < UniCase < & ' static str > , BTreeMap < UniCase < & ' static str > , Vec < & ' static str > > > {
172172 // First, collect all the mime type -> ext mappings)
0 commit comments