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; 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 convert;
pub mod engine; pub mod engine;

View File

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

View File

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

View File

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

View File

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

View File

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