aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/lib.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-11-10 11:48:09 -0500
committerGitHub <noreply@github.com>2018-11-10 11:48:09 -0500
commit3b1078b58d510668355adb294193c0fa436b79c9 (patch)
tree2c2be69a7c068d6c06d3b473ae722293d88caa87 /components/style/lib.rs
parent7eb8544759d143b6622a734ab61b14af8ce55d82 (diff)
parentb0d13cc2543d78c3369ea9894f270a126867cfc0 (diff)
downloadservo-3b1078b58d510668355adb294193c0fa436b79c9.tar.gz
servo-3b1078b58d510668355adb294193c0fa436b79c9.zip
Auto merge of #22083 - servo:2018, r=emilio
Prepare stylo crates for switching to the 2018 edition This can land when [Gecko requires Rust 1.30](https://bugzilla.mozilla.org/show_bug.cgi?id=1504031). This does not switch the crates yet because the new edition is not yet stable in 1.30. <!-- 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/22083) <!-- Reviewable:end -->
Diffstat (limited to 'components/style/lib.rs')
-rw-r--r--components/style/lib.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/components/style/lib.rs b/components/style/lib.rs
index 29df16f6183..6694f776ab8 100644
--- a/components/style/lib.rs
+++ b/components/style/lib.rs
@@ -165,15 +165,15 @@ pub mod use_counters;
pub mod values;
#[cfg(feature = "gecko")]
-pub use gecko_string_cache as string_cache;
+pub use crate::gecko_string_cache as string_cache;
#[cfg(feature = "gecko")]
-pub use gecko_string_cache::Atom;
+pub use crate::gecko_string_cache::Atom;
#[cfg(feature = "gecko")]
-pub use gecko_string_cache::Atom as Prefix;
+pub use crate::gecko_string_cache::Atom as Prefix;
#[cfg(feature = "gecko")]
-pub use gecko_string_cache::Atom as LocalName;
+pub use crate::gecko_string_cache::Atom as LocalName;
#[cfg(feature = "gecko")]
-pub use gecko_string_cache::Namespace;
+pub use crate::gecko_string_cache::Namespace;
#[cfg(feature = "servo")]
pub use html5ever::LocalName;
@@ -215,17 +215,17 @@ macro_rules! reexport_computed_values {
/// [computed]: https://drafts.csswg.org/css-cascade/#computed
pub mod computed_values {
$(
- pub use properties::longhands::$name::computed_value as $name;
+ pub use crate::properties::longhands::$name::computed_value as $name;
)+
// Don't use a side-specific name needlessly:
- pub use properties::longhands::border_top_style::computed_value as border_style;
+ pub use crate::properties::longhands::border_top_style::computed_value as border_style;
}
}
}
longhand_properties_idents!(reexport_computed_values);
#[cfg(feature = "gecko")]
-use gecko_string_cache::WeakAtom;
+use crate::gecko_string_cache::WeakAtom;
#[cfg(feature = "servo")]
use servo_atoms::Atom as WeakAtom;