Skip to content

Commit

Permalink
Merge pull request #83 from aidanhs/aphs-set-phf-path-2
Browse files Browse the repository at this point in the history
Add overlooked phf path overrides
  • Loading branch information
sfackler committed May 5, 2016
2 parents c59f70e + da5f9be commit 66ead77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions phf_codegen/src/lib.rs
Expand Up @@ -162,7 +162,7 @@ impl<K: Hash+PhfHash+Eq+fmt::Debug> Map<K> {
try!(write!(w,
"
]),
entries: ::phf::Slice::Static(&["));
entries: {}::Slice::Static(&[", self.path));
for &idx in &state.map {
try!(write!(w,
"
Expand Down Expand Up @@ -277,7 +277,7 @@ impl<K: Hash+PhfHash+Eq+fmt::Debug> OrderedMap<K> {
try!(write!(w,
"
]),
idxs: ::phf::Slice::Static(&["));
idxs: {}::Slice::Static(&[", self.path));
for &idx in &state.map {
try!(write!(w,
"
Expand All @@ -287,7 +287,7 @@ impl<K: Hash+PhfHash+Eq+fmt::Debug> OrderedMap<K> {
try!(write!(w,
"
]),
entries: ::phf::Slice::Static(&["));
entries: {}::Slice::Static(&[", self.path));
for (key, value) in self.keys.iter().zip(self.values.iter()) {
try!(write!(w,
"
Expand Down

0 comments on commit 66ead77

Please sign in to comment.