Skip to content

Commit

Permalink
~[] to Vec in gfx/text/text_run.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
murphm8 authored and Ms2ger committed May 4, 2014
1 parent 2903e55 commit b88c84d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/gfx/text/text_run.rs
Expand Up @@ -18,7 +18,7 @@ pub struct TextRun {
pub font_metrics: FontMetrics,
pub font_style: FontStyle,
pub decoration: text_decoration::T,
pub glyphs: Arc<~[Arc<GlyphStore>]>,
pub glyphs: Arc<Vec<Arc<GlyphStore>>>,
}

pub struct SliceIterator<'a> {
Expand Down Expand Up @@ -113,10 +113,10 @@ impl<'a> TextRun {
pub fn teardown(&self) {
}

pub fn break_and_shape(font: &mut Font, text: &str) -> ~[Arc<GlyphStore>] {
pub fn break_and_shape(font: &mut Font, text: &str) -> Vec<Arc<GlyphStore>> {
// TODO(Issue #230): do a better job. See Gecko's LineBreaker.

let mut glyphs = ~[];
let mut glyphs = Vec::new();
let mut byte_i = 0u;
let mut cur_slice_is_whitespace = false;
let mut byte_last_boundary = 0;
Expand Down Expand Up @@ -174,7 +174,7 @@ impl<'a> TextRun {
})
}

pub fn glyphs(&'a self) -> &'a ~[Arc<GlyphStore>] {
pub fn glyphs(&'a self) -> &'a Vec<Arc<GlyphStore>> {
&*self.glyphs
}

Expand Down

0 comments on commit b88c84d

Please sign in to comment.