diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2021-02-25 10:39:53 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2021-02-25 15:36:03 +0100 |
commit | a0d9f97c8e5fbe91f4f10058cfae1bc78d88fc98 (patch) | |
tree | 3fbcf0e4322c5d8f8cedcf79e13d58919121560e /components/style_derive/parse.rs | |
parent | 4353d534d4b0d64c80de7afc5b370f2a8a6d3d00 (diff) | |
download | servo-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_derive/parse.rs')
-rw-r--r-- | components/style_derive/parse.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style_derive/parse.rs b/components/style_derive/parse.rs index ebf46a3735e..345decce28c 100644 --- a/components/style_derive/parse.rs +++ b/components/style_derive/parse.rs @@ -8,15 +8,15 @@ use proc_macro2::TokenStream; use syn::{self, DeriveInput, Path}; use synstructure::{Structure, VariantInfo}; -#[darling(attributes(parse), default)] #[derive(Default, FromVariant)] +#[darling(attributes(parse), default)] pub struct ParseVariantAttrs { pub aliases: Option<String>, pub condition: Option<Path>, } -#[darling(attributes(parse), default)] #[derive(Default, FromField)] +#[darling(attributes(parse), default)] pub struct ParseFieldAttrs { field_bound: bool, } |