aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/values/generics/image.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2021-02-25 10:39:53 +0100
committerSimon Sapin <simon.sapin@exyr.org>2021-02-25 15:36:03 +0100
commita0d9f97c8e5fbe91f4f10058cfae1bc78d88fc98 (patch)
tree3fbcf0e4322c5d8f8cedcf79e13d58919121560e /components/style/values/generics/image.rs
parent4353d534d4b0d64c80de7afc5b370f2a8a6d3d00 (diff)
downloadservo-a0d9f97c8e5fbe91f4f10058cfae1bc78d88fc98.tar.gz
servo-a0d9f97c8e5fbe91f4f10058cfae1bc78d88fc98.zip
Fix warnings introduced in newer Rust Nightly
This does not (yet) upgrade ./rust-toolchain The warnings: * dead_code "field is never read" * redundant_semicolons "unnecessary trailing semicolon" * non_fmt_panic "panic message is not a string literal, this is no longer accepted in Rust 2021" * unstable_name_collisions "a method with this name may be added to the standard library in the future" * legacy_derive_helpers "derive helper attribute is used before it is introduced" https://github.com/rust-lang/rust/issues/79202
Diffstat (limited to 'components/style/values/generics/image.rs')
-rw-r--r--components/style/values/generics/image.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/values/generics/image.rs b/components/style/values/generics/image.rs
index fba1f3f3c78..6f550bc21f6 100644
--- a/components/style/values/generics/image.rs
+++ b/components/style/values/generics/image.rs
@@ -264,7 +264,6 @@ impl ToCss for PaintWorklet {
///
/// `-moz-image-rect(<uri>, top, right, bottom, left);`
#[allow(missing_docs)]
-#[css(comma, function = "-moz-image-rect")]
#[derive(
Clone,
Debug,
@@ -276,6 +275,7 @@ impl ToCss for PaintWorklet {
ToResolvedValue,
ToShmem,
)]
+#[css(comma, function = "-moz-image-rect")]
#[repr(C)]
pub struct GenericMozImageRect<NumberOrPercentage, MozImageRectUrl> {
pub url: MozImageRectUrl,