Skip to content

Commit 4a46a54

Browse files
committed
Hide re-exported phf from docs
1 parent 8c1dd28 commit 4a46a54

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

macros/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ define_proc_macros! {
7676
}).collect();
7777

7878
let mut map = phf_codegen::Map::new();
79-
map.phf_path("::cssparser::phf");
79+
map.phf_path("::cssparser::_internal__phf");
8080
for &(ref key, ref value) in &pairs {
8181
map.entry(&**key, &**value);
8282
}
8383

8484
let mut tokens = quote! {
85-
static MAP: ::cssparser::phf::Map<&'static str, #value_type> =
85+
static MAP: ::cssparser::_internal__phf::Map<&'static str, #value_type> =
8686
};
8787
let mut initializer_bytes = Vec::new();
8888
map.build(&mut initializer_bytes).unwrap();

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fn parse_border_spacing(_context: &ParserContext, input: &mut Parser)
7171
#[macro_use] extern crate cssparser_macros;
7272
#[macro_use] extern crate matches;
7373
#[macro_use] extern crate procedural_masquerade;
74-
pub extern crate phf;
74+
#[doc(hidden)] pub extern crate phf as _internal__phf;
7575
#[cfg(test)] extern crate encoding_rs;
7676
#[cfg(test)] extern crate tempdir;
7777
#[cfg(test)] extern crate rustc_serialize;
@@ -96,7 +96,7 @@ pub use unicode_range::UnicodeRange;
9696
#[doc(hidden)] pub use macros::_internal__to_lowercase;
9797

9898
// For macros when used in this crate. Unsure how $crate works with procedural-masquerade.
99-
mod cssparser { pub use phf; }
99+
mod cssparser { pub use _internal__phf; }
100100

101101
#[macro_use]
102102
mod macros;

0 commit comments

Comments
 (0)