Skip to content

Commit

Permalink
InternedString.get() removal; brings us to rustc 1.0.0-dev (80627cd3c…
Browse files Browse the repository at this point in the history
… 2015-02-07 12:01:31 +0000)
  • Loading branch information
Manishearth committed Feb 7, 2015
1 parent b0c5e3c commit 3150bf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phf_macros/src/util.rs
Original file line number Diff line number Diff line change
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 3150bf0

Please sign in to comment.