aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/lib.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-09-19 17:47:27 -0400
committerGitHub <noreply@github.com>2018-09-19 17:47:27 -0400
commitdf2adebefdfa3da49f173e480fa1e56450f9bda2 (patch)
tree1f05b49bac02318455a59d5b143c186fd872bdb9 /components/script/lib.rs
parent2ca7a134736bb4759ff209c1bc0b6dc3cc1984c9 (diff)
parentc37a345dc9f4dda6ea29c42f96f6c7201c42cbac (diff)
downloadservo-df2adebefdfa3da49f173e480fa1e56450f9bda2.tar.gz
servo-df2adebefdfa3da49f173e480fa1e56450f9bda2.zip
Auto merge of #21737 - chansuke:format_script, r=jdm
Format script component --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix part of #21373. - [x] These changes do not require tests because they format code only. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21737) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/lib.rs')
-rw-r--r--components/script/lib.rs34
1 files changed, 21 insertions, 13 deletions
diff --git a/components/script/lib.rs b/components/script/lib.rs
index fe0f18f7baf..f8341323466 100644
--- a/components/script/lib.rs
+++ b/components/script/lib.rs
@@ -8,14 +8,14 @@
#![feature(drain_filter)]
#![feature(plugin)]
#![feature(try_from)]
-
#![deny(unsafe_code)]
#![allow(non_snake_case)]
-
#![doc = "The script crate contains all matters DOM."]
-
#![plugin(script_plugins)]
-#![cfg_attr(not(feature = "unrooted_must_root_lint"), allow(unknown_lints))]
+#![cfg_attr(
+ not(feature = "unrooted_must_root_lint"),
+ allow(unknown_lints)
+)]
extern crate app_units;
extern crate audio_video_metadata;
@@ -28,20 +28,24 @@ extern crate canvas_traits;
extern crate caseless;
extern crate chrono;
extern crate cookie as cookie_rs;
-#[macro_use] extern crate cssparser;
-#[macro_use] extern crate deny_public_fields;
+#[macro_use]
+extern crate cssparser;
+#[macro_use]
+extern crate deny_public_fields;
extern crate devtools_traits;
extern crate dom_struct;
#[macro_use]
extern crate domobject_derive;
extern crate embedder_traits;
extern crate encoding_rs;
-#[macro_use] extern crate enum_iterator;
+#[macro_use]
+extern crate enum_iterator;
extern crate euclid;
extern crate fnv;
extern crate gleam;
extern crate half;
-#[macro_use] extern crate html5ever;
+#[macro_use]
+extern crate html5ever;
#[macro_use]
extern crate hyper;
extern crate hyper_serde;
@@ -54,8 +58,10 @@ extern crate lazy_static;
extern crate libc;
#[macro_use]
extern crate log;
-#[macro_use] extern crate malloc_size_of;
-#[macro_use] extern crate malloc_size_of_derive;
+#[macro_use]
+extern crate malloc_size_of;
+#[macro_use]
+extern crate malloc_size_of_derive;
extern crate metrics;
#[macro_use]
extern crate mime;
@@ -82,8 +88,10 @@ extern crate serde;
extern crate serde_bytes;
extern crate servo_allocator;
extern crate servo_arc;
-#[macro_use] extern crate servo_atoms;
-#[macro_use] extern crate servo_channel;
+#[macro_use]
+extern crate servo_atoms;
+#[macro_use]
+extern crate servo_channel;
extern crate servo_config;
extern crate servo_geometry;
extern crate servo_media;
@@ -180,7 +188,7 @@ fn perform_platform_specific_initialization() {
} else {
MAX_FILE_LIMIT
}
- }
+ },
};
match libc::setrlimit(libc::RLIMIT_NOFILE, &rlim) {
0 => (),