aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko_string_cache/namespace.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/gecko_string_cache/namespace.rs')
-rw-r--r--components/style/gecko_string_cache/namespace.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/components/style/gecko_string_cache/namespace.rs b/components/style/gecko_string_cache/namespace.rs
index 72de229f1d7..1acf04c93ff 100644
--- a/components/style/gecko_string_cache/namespace.rs
+++ b/components/style/gecko_string_cache/namespace.rs
@@ -47,18 +47,9 @@ impl PrecomputedHash for Namespace {
}
/// A Gecko WeakNamespace is a wrapped WeakAtom.
-#[derive(Hash)]
+#[derive(Hash, Deref)]
pub struct WeakNamespace(WeakAtom);
-impl Deref for WeakNamespace {
- type Target = WeakAtom;
-
- #[inline]
- fn deref(&self) -> &WeakAtom {
- &self.0
- }
-}
-
impl Deref for Namespace {
type Target = WeakNamespace;