Skip to content

Commit

Permalink
Merge pull request #45 from Manishearth/internedstring
Browse files Browse the repository at this point in the history
InternedString.get() removal; brings us to rustc 1.0.0-dev (80627cd3c 2015-02-07 12:01:31 +0000)
  • Loading branch information
sfackler committed Feb 7, 2015
2 parents b0c5e3c + 3150bf0 commit 9b9c009
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phf_macros/src/util.rs
Expand Up @@ -36,7 +36,7 @@ pub enum Key {
impl<S> Hash<S> for Key where S: Hasher + hash::Writer {
fn hash(&self, state: &mut S) {
match *self {
Key::Str(ref s) => s.get().hash(state),
Key::Str(ref s) => s.hash(state),
Key::Binary(ref b) => b.hash(state),
Key::Char(c) => c.hash(state),
Key::U8(b) => b.hash(state),
Expand All @@ -55,7 +55,7 @@ impl<S> Hash<S> for Key where S: Hasher + hash::Writer {
impl PhfHash for Key {
fn phf_hash(&self, key: u64) -> (u32, u32, u32) {
match *self {
Key::Str(ref s) => s.get().phf_hash(key),
Key::Str(ref s) => s.phf_hash(key),
Key::Binary(ref b) => b.phf_hash(key),
Key::Char(c) => c.phf_hash(key),
Key::U8(b) => b.phf_hash(key),
Expand Down

0 comments on commit 9b9c009

Please sign in to comment.