From 465efd784ca380560425d71e03f2cac4b28d4f9c Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 28 Oct 2016 15:48:36 +0200 Subject: Update to selectors 0.14 --- components/style/gecko_string_cache/namespace.rs | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'components/style/gecko_string_cache/namespace.rs') 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() - } -} -- cgit v1.2.3