Remove unnecessary @mut from LineboxScanner

This commit is contained in:
Keegan McAllister 2013-12-05 17:26:12 -08:00
parent e8da737322
commit 94b70e25e1

View file

@ -59,8 +59,7 @@ struct LineBox {
struct LineboxScanner { struct LineboxScanner {
floats: FloatContext, floats: FloatContext,
new_boxes: ~[@Box], new_boxes: ~[@Box],
/// FIXME(pcwalton): `@mut`? :( work_list: RingBuf<@Box>,
work_list: @mut RingBuf<@Box>,
pending_line: LineBox, pending_line: LineBox,
lines: ~[LineBox], lines: ~[LineBox],
cur_y: Au, cur_y: Au,
@ -73,7 +72,7 @@ impl LineboxScanner {
LineboxScanner { LineboxScanner {
floats: float_ctx, floats: float_ctx,
new_boxes: ~[], new_boxes: ~[],
work_list: @mut RingBuf::new(), work_list: RingBuf::new(),
pending_line: LineBox { pending_line: LineBox {
range: Range::empty(), range: Range::empty(),
bounds: Rect(Point2D(Au::new(0), Au::new(0)), Size2D(Au::new(0), Au::new(0))), bounds: Rect(Point2D(Au::new(0), Au::new(0)), Size2D(Au::new(0), Au::new(0))),