[ci-skip] fix warnings
This commit is contained in:
parent
158f75b65d
commit
f5f79ee0a9
@ -656,11 +656,7 @@ fn get_item_idents(builder: &aster::AstBuilder, item: &Item) -> (::syntax::ast::
|
|||||||
(item_ident, client_ident)
|
(item_ident, client_ident)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn collect_tys(
|
fn collect_tys(items: &[&MethodSig]) -> Vec<P<Ty>> {
|
||||||
cx: &ExtCtxt,
|
|
||||||
builder: &aster::AstBuilder,
|
|
||||||
items: &[&MethodSig],
|
|
||||||
) -> Vec<P<Ty>> {
|
|
||||||
let mut result = Vec::new();
|
let mut result = Vec::new();
|
||||||
for signature in items {
|
for signature in items {
|
||||||
result.extend(signature.decl.inputs.iter().map(|input_arg| input_arg.ty.clone()));
|
result.extend(signature.decl.inputs.iter().map(|input_arg| input_arg.ty.clone()));
|
||||||
|
@ -16,14 +16,6 @@
|
|||||||
use aster;
|
use aster;
|
||||||
|
|
||||||
use syntax::ast::{
|
use syntax::ast::{
|
||||||
MetaItem,
|
|
||||||
Item,
|
|
||||||
ImplItemKind,
|
|
||||||
ImplItem,
|
|
||||||
MethodSig,
|
|
||||||
Arg,
|
|
||||||
PatKind,
|
|
||||||
FunctionRetTy,
|
|
||||||
Ty,
|
Ty,
|
||||||
TyKind,
|
TyKind,
|
||||||
Path,
|
Path,
|
||||||
|
Loading…
Reference in New Issue
Block a user