Fix warnings

This commit is contained in:
Andrey Tkachenko 2018-10-12 15:27:51 +04:00
parent 8e67c1a054
commit 0ae487e4de
7 changed files with 4 additions and 11 deletions

View File

@ -23,7 +23,7 @@ impl<A, M, CB> Callback for Callback1<A, M, CB>
{
type Arg = A;
fn call(&self, arg: Self::Arg) {
fn call(&self, _arg: Self::Arg) {
}
}

View File

@ -1,4 +1,4 @@
#![feature(proc_macro, associated_type_defaults, never_type, unsize, specialization)]
#![feature(associated_type_defaults, never_type, unsize, specialization)]
pub mod convert;
pub mod engine;

View File

@ -1,7 +1,6 @@
#![feature(proc_macro_hygiene)]
#![allow(dead_code)]
#[macro_use]
extern crate maple;
extern crate maple_stdweb_dom;

View File

@ -6,8 +6,6 @@ mod tag;
#[macro_use]
extern crate syn;
#[macro_use]
extern crate quote;
extern crate proc_macro;
@ -17,7 +15,6 @@ use quote::*;
use self::node::Node;
use self::attribute::{Attribute, AttributeValue};
use self::tag::Tag;
fn visit_attribute(ident: &Ident, attr: &Attribute, _ctx: &TypePath) -> impl ToTokens {
let attr_name = &attr.name;

View File

@ -1,6 +1,4 @@
use syn::parse::{Parse, ParseStream, Result};
use quote::ToTokens;
use crate::tag::Tag;
#[derive(Debug)]

View File

@ -14,8 +14,8 @@ impl Parse for Tag {
fn parse(input: ParseStream) -> Result<Self> {
let mut attrs: Vec<Attribute> = Vec::new();
let mut children: Vec<Node> = Vec::new();
let mut open_path: TypePath;
let mut close_path: TypePath;
let open_path: TypePath;
let close_path: TypePath;
// parsing opening "<"
input.parse::<Token![<]>()?;

View File

@ -1,4 +1,3 @@
#[macro_use]
extern crate maple_core;
pub mod prelude {