diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-11-06 13:38:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-06 13:38:52 -0500 |
commit | 6878dbbbeaa59b21a7b3608b6d6a911e88c1e443 (patch) | |
tree | f4a13f7d59c7f72c51e30755d1097595764f96c0 /components/script/test.rs | |
parent | 8df38f5e29d0005b792d403c3c54d35748448100 (diff) | |
parent | 8757cf5bc084ee23db643e283ca7e9fef143d810 (diff) | |
download | servo-6878dbbbeaa59b21a7b3608b6d6a911e88c1e443.tar.gz servo-6878dbbbeaa59b21a7b3608b6d6a911e88c1e443.zip |
Auto merge of #22086 - servo:2018-without-stylo, r=SimonSapin
Switch some crates to the 2018 edition
This is the subset of https://github.com/servo/servo/pull/22083 that doesn’t affect Gecko at all, so it isn’t blocked.
<!-- 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/22086)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/test.rs')
-rw-r--r-- | components/script/test.rs | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/components/script/test.rs b/components/script/test.rs index 5dd75edad8f..7b87cb71f8c 100644 --- a/components/script/test.rs +++ b/components/script/test.rs @@ -2,28 +2,28 @@ * 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/. */ -pub use dom::bindings::str::{ByteString, DOMString}; -pub use dom::headers::normalize_value; +pub use crate::dom::bindings::str::{ByteString, DOMString}; +pub use crate::dom::headers::normalize_value; // For compile-fail tests only. -pub use dom::bindings::cell::DomRefCell; -pub use dom::bindings::root::Dom; -pub use dom::node::Node; -pub use dom::bindings::refcounted::TrustedPromise; +pub use crate::dom::bindings::cell::DomRefCell; +pub use crate::dom::bindings::root::Dom; +pub use crate::dom::node::Node; +pub use crate::dom::bindings::refcounted::TrustedPromise; pub mod area { - pub use dom::htmlareaelement::{Area, Shape}; + pub use crate::dom::htmlareaelement::{Area, Shape}; } pub mod size_of { - use dom::characterdata::CharacterData; - use dom::element::Element; - use dom::eventtarget::EventTarget; - use dom::htmldivelement::HTMLDivElement; - use dom::htmlelement::HTMLElement; - use dom::htmlspanelement::HTMLSpanElement; - use dom::node::Node; - use dom::text::Text; + use crate::dom::characterdata::CharacterData; + use crate::dom::element::Element; + use crate::dom::eventtarget::EventTarget; + use crate::dom::htmldivelement::HTMLDivElement; + use crate::dom::htmlelement::HTMLElement; + use crate::dom::htmlspanelement::HTMLSpanElement; + use crate::dom::node::Node; + use crate::dom::text::Text; use std::mem::size_of; pub fn CharacterData() -> usize { @@ -60,9 +60,9 @@ pub mod size_of { } pub mod srcset { - pub use dom::htmlimageelement::{parse_a_srcset_attribute, ImageSource, Descriptor}; + pub use crate::dom::htmlimageelement::{parse_a_srcset_attribute, ImageSource, Descriptor}; } pub mod timeranges { - pub use dom::timeranges::TimeRangesContainer; + pub use crate::dom::timeranges::TimeRangesContainer; } |