From efed0ac742746ad5947037482eeadde15b487ef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 8 Aug 2017 17:33:51 +0200 Subject: [PATCH] stylo: We've had bitfield accessors for a while now. --- components/style/gecko_string_cache/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/style/gecko_string_cache/mod.rs b/components/style/gecko_string_cache/mod.rs index fed06fbeec5..f3bb04f6c55 100644 --- a/components/style/gecko_string_cache/mod.rs +++ b/components/style/gecko_string_cache/mod.rs @@ -156,11 +156,8 @@ impl WeakAtom { /// Returns the length of the atom string. #[inline] pub fn len(&self) -> u32 { - // FIXME(emilio): re-introduce bitfield accessors: - // - // https://github.com/servo/rust-bindgen/issues/519 unsafe { - (*self.as_ptr())._bitfield_1 & 0x7FFFFFFF + (*self.as_ptr()).mLength() } }