mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
~[] to Vec in gfx/font_list.rs
This commit is contained in:
parent
98a78e3faf
commit
f219dbeb6f
1 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue