Use upstream lazy_static!() macro through Cargo

... instead of having our own copy.

https://github.com/Kimundi/lazy-static.rs
This commit is contained in:
Simon Sapin 2014-09-20 21:03:58 +01:00 committed by Keegan McAllister
parent af96e8e409
commit a40b94d7f9
6 changed files with 7 additions and 66 deletions

View file

@ -29,3 +29,5 @@ git = "https://github.com/servo/rust-cssparser"
[dependencies.encoding]
git = "https://github.com/lifthrasiir/rust-encoding"
[dependencies.lazy_static]
git = "https://github.com/Kimundi/lazy-static.rs"

View file

@ -22,9 +22,9 @@ extern crate url;
extern crate cssparser;
extern crate encoding;
#[phase(plugin)]
extern crate "macros" as servo_macros;
extern crate lazy_static;
extern crate "util" as servo_util;

View file

@ -1822,7 +1822,7 @@ fn get_writing_mode(inheritedbox_style: &style_structs::InheritedBox) -> Writing
/// The initial values for all style structs as defined by the specification.
lazy_init! {
lazy_static! {
static ref INITIAL_VALUES: ComputedValues = ComputedValues {
% for style_struct in STYLE_STRUCTS:
${style_struct.ident}: Arc::new(style_structs::${style_struct.name} {