~[] to Vec in gfx/font_list.rs

This commit is contained in:
Matt Murphy 2014-04-24 19:53:25 -05:00 committed by Ms2ger
parent 98a78e3faf
commit f219dbeb6f

View file

@ -84,14 +84,14 @@ impl FontList {
// Holds a specific font family, and the various
pub struct FontFamily {
pub family_name: ~str,
pub entries: ~[FontEntry],
pub entries: Vec<FontEntry>,
}
impl FontFamily {
pub fn new(family_name: &str) -> FontFamily {
FontFamily {
family_name: family_name.to_str(),
entries: ~[],
entries: Vec::new(),
}
}