mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
Add license headers
This commit is contained in:
parent
fcb25a35ec
commit
2a4f9fd8a3
3 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
use syntax::{ast, codemap, visit};
|
use syntax::{ast, codemap, visit};
|
||||||
use syntax::attr::AttrMetaMethods;
|
use syntax::attr::AttrMetaMethods;
|
||||||
use rustc::lint::{Context, LintPass, LintArray};
|
use rustc::lint::{Context, LintPass, LintArray};
|
||||||
|
@ -140,4 +144,4 @@ impl LintPass for UnrootedPass {
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
//! Exports macros for use in other Servo crates.
|
//! Exports macros for use in other Servo crates.
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
use std::collections::hashmap::HashMap;
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
use std::collections::hashmap::HashMap;
|
||||||
|
|
||||||
lazy_init! {
|
lazy_init! {
|
||||||
static ref NUMBER: uint = times_two(3);
|
static ref NUMBER: uint = times_two(3);
|
||||||
|
@ -32,3 +36,4 @@ fn test_repeat() {
|
||||||
assert_eq!(*NUMBER, 6);
|
assert_eq!(*NUMBER, 6);
|
||||||
assert_eq!(*NUMBER, 6);
|
assert_eq!(*NUMBER, 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue