From f5f79ee0a9218f547d7799c8a6f5afab35bd7f09 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Wed, 13 Apr 2016 13:29:49 +0300 Subject: [PATCH] [ci-skip] fix warnings --- ipc/codegen/src/codegen.rs | 6 +----- ipc/codegen/src/typegen.rs | 8 -------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/ipc/codegen/src/codegen.rs b/ipc/codegen/src/codegen.rs index 614a38a86..ebd2bb361 100644 --- a/ipc/codegen/src/codegen.rs +++ b/ipc/codegen/src/codegen.rs @@ -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> { +fn collect_tys(items: &[&MethodSig]) -> Vec> { let mut result = Vec::new(); for signature in items { result.extend(signature.decl.inputs.iter().map(|input_arg| input_arg.ty.clone())); diff --git a/ipc/codegen/src/typegen.rs b/ipc/codegen/src/typegen.rs index cc18a4206..73ce9a672 100644 --- a/ipc/codegen/src/typegen.rs +++ b/ipc/codegen/src/typegen.rs @@ -16,14 +16,6 @@ use aster; use syntax::ast::{ - MetaItem, - Item, - ImplItemKind, - ImplItem, - MethodSig, - Arg, - PatKind, - FunctionRetTy, Ty, TyKind, Path,