Skip to content

Commit

Permalink
Format gfx_traits #21373
Browse files Browse the repository at this point in the history
  • Loading branch information
kingdido999 committed Sep 9, 2018
1 parent 9c1c58a commit 2c9e32a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions components/gfx_traits/lib.rs
Expand Up @@ -4,13 +4,15 @@

#![crate_name = "gfx_traits"]
#![crate_type = "rlib"]

#![deny(unsafe_code)]

extern crate malloc_size_of;
#[macro_use] extern crate malloc_size_of_derive;
#[macro_use] extern crate range;
#[macro_use] extern crate serde;
#[macro_use]
extern crate malloc_size_of_derive;
#[macro_use]
extern crate range;
#[macro_use]
extern crate serde;

pub mod print_tree;

Expand All @@ -32,7 +34,7 @@ impl Epoch {
pub struct StackingContextId(
/// The identifier for this StackingContext, derived from the Flow's memory address
/// and fragment type. As a space optimization, these are combined into a single word.
pub u64
pub u64,
);

impl StackingContextId {
Expand Down Expand Up @@ -87,7 +89,7 @@ fn next_special_id() -> usize {
SPECIAL_SCROLL_ROOT_ID_MASK
}

pub fn combine_id_with_fragment_type(id: usize, fragment_type: FragmentType) -> usize {
pub fn combine_id_with_fragment_type(id: usize, fragment_type: FragmentType) -> usize {
debug_assert_eq!(id & (fragment_type as usize), 0);
if fragment_type == FragmentType::FragmentBody {
id
Expand Down

0 comments on commit 2c9e32a

Please sign in to comment.