Put UnscannedTextFragmentInfo in a Box

This reduces the size of the SpecificFragmentInfo enum from 48 to 24.
This commit is contained in:
Matt Brubeck 2016-03-28 22:03:25 -07:00
parent 14e945f09a
commit 31261f045e
5 changed files with 14 additions and 13 deletions

View file

@ -7,7 +7,7 @@ use std::mem::size_of;
#[test]
fn test_size_of_fragment() {
let expected = 184;
let expected = 160;
let actual = size_of::<Fragment>();
if actual < expected {