Skip to content

Commit

Permalink
stylo: We've had bitfield accessors for a while now.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Aug 8, 2017
1 parent 32f8352 commit efed0ac
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/style/gecko_string_cache/mod.rs
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit efed0ac

Please sign in to comment.