Rename Arg to FnArg
diff --git a/src/lib.rs b/src/lib.rs
index 1e6cd14..a4ebe8b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -47,8 +47,8 @@
mod ty;
pub use ty::{
AngleBracketedParameterData,
- Arg,
BareFnTy,
+ FnArg,
FnDecl,
FunctionRetTy,
MutTy,
diff --git a/src/ty.rs b/src/ty.rs
index 7b05272..c4e6c41 100644
--- a/src/ty.rs
+++ b/src/ty.rs
@@ -155,7 +155,7 @@
/// E.g. `fn foo(bar: baz)`
#[derive(Debug, Clone, Eq, PartialEq)]
pub struct FnDecl {
- pub inputs: Vec<Arg>,
+ pub inputs: Vec<FnArg>,
pub output: FunctionRetTy,
}
@@ -163,7 +163,7 @@
///
/// E.g. `bar: usize` as in `fn foo(bar: usize)`
#[derive(Debug, Clone, Eq, PartialEq)]
-pub struct Arg {
+pub struct FnArg {
pub pat: Option<Ident>,
pub ty: Ty,
}
@@ -403,10 +403,10 @@
})
));
- named!(fn_arg<&str, Arg>, do_parse!(
+ named!(fn_arg<&str, FnArg>, do_parse!(
pat: option!(terminated!(word, punct!(":"))) >>
ty: ty >>
- (Arg {
+ (FnArg {
pat: pat,
ty: ty,
})