diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2016-10-28 15:48:36 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2016-10-28 15:56:37 +0200 |
commit | 465efd784ca380560425d71e03f2cac4b28d4f9c (patch) | |
tree | 2df4240d0ad53398f263d82a98fa02dc856ffae9 /components/style/gecko_string_cache/namespace.rs | |
parent | afa55dcf5573d6b535a8e9681d42fe51e1ff01d1 (diff) | |
download | servo-465efd784ca380560425d71e03f2cac4b28d4f9c.tar.gz servo-465efd784ca380560425d71e03f2cac4b28d4f9c.zip |
Update to selectors 0.14
Diffstat (limited to 'components/style/gecko_string_cache/namespace.rs')
-rw-r--r-- | components/style/gecko_string_cache/namespace.rs | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/components/style/gecko_string_cache/namespace.rs b/components/style/gecko_string_cache/namespace.rs index d51353c9fc9..b2f464db184 100644 --- a/components/style/gecko_string_cache/namespace.rs +++ b/components/style/gecko_string_cache/namespace.rs @@ -3,7 +3,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use gecko_bindings::structs::nsIAtom; -use selectors::bloom::BloomHash; use std::borrow::Borrow; use std::fmt; use std::ops::Deref; @@ -16,6 +15,8 @@ macro_rules! ns { #[derive(Debug, PartialEq, Eq, Clone, Default, Hash)] pub struct Namespace(pub Atom); + +#[derive(Hash)] pub struct WeakNamespace(WeakAtom); impl Deref for Namespace { @@ -64,17 +65,3 @@ impl PartialEq for WeakNamespace { weak == other } } - -impl BloomHash for Namespace { - #[inline] - fn bloom_hash(&self) -> u32 { - self.0.get_hash() - } -} - -impl BloomHash for WeakNamespace { - #[inline] - fn bloom_hash(&self) -> u32 { - self.0.get_hash() - } -} |