зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1549301 - Fix some warnings.
This commit is contained in:
Родитель
a465f73789
Коммит
959628ed83
|
@ -3,7 +3,6 @@
|
|||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
extern crate darling;
|
||||
extern crate proc_macro;
|
||||
extern crate proc_macro2;
|
||||
#[macro_use]
|
||||
extern crate quote;
|
||||
|
|
|
@ -245,7 +245,6 @@ impl ParseErrorReporter for RustLogReporter {
|
|||
location: SourceLocation,
|
||||
error: ContextualParseError,
|
||||
) {
|
||||
use log;
|
||||
if log_enabled!(log::Level::Info) {
|
||||
info!(
|
||||
"Url:\t{}\n{}:{} {}",
|
||||
|
|
|
@ -345,7 +345,6 @@ impl NonTSPseudoClass {
|
|||
/// selector matching, and it's set from the DOM.
|
||||
pub fn state_flag(&self) -> ElementState {
|
||||
use self::NonTSPseudoClass::*;
|
||||
use crate::element_state::ElementState;
|
||||
match *self {
|
||||
Active => ElementState::IN_ACTIVE_STATE,
|
||||
Focus => ElementState::IN_FOCUS_STATE,
|
||||
|
|
|
@ -25,7 +25,7 @@ pub fn derive(mut input: DeriveInput) -> TokenStream {
|
|||
let s = Structure::new(&input);
|
||||
let mut append_error_clause = s.variants().len() > 1;
|
||||
|
||||
let mut match_body = s.variants().iter().fold(quote!(), |body, variant| {
|
||||
let match_body = s.variants().iter().fold(quote!(), |body, variant| {
|
||||
let arm = match derive_variant_arm(variant, &mut where_clause) {
|
||||
Ok(arm) => arm,
|
||||
Err(()) => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче