[ci-skip] fix warnings

This commit is contained in:
NikVolf 2016-04-13 13:29:49 +03:00
parent 158f75b65d
commit f5f79ee0a9
2 changed files with 1 additions and 13 deletions

View File

@ -656,11 +656,7 @@ fn get_item_idents(builder: &aster::AstBuilder, item: &Item) -> (::syntax::ast::
(item_ident, client_ident)
}
fn collect_tys(
cx: &ExtCtxt,
builder: &aster::AstBuilder,
items: &[&MethodSig],
) -> Vec<P<Ty>> {
fn collect_tys(items: &[&MethodSig]) -> Vec<P<Ty>> {
let mut result = Vec::new();
for signature in items {
result.extend(signature.decl.inputs.iter().map(|input_arg| input_arg.ty.clone()));

View File

@ -16,14 +16,6 @@
use aster;
use syntax::ast::{
MetaItem,
Item,
ImplItemKind,
ImplItem,
MethodSig,
Arg,
PatKind,
FunctionRetTy,
Ty,
TyKind,
Path,