about summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-05-16 12:57:45 +0100
committervarkor <github@varkor.com>2018-06-20 12:19:04 +0100
commitf9d0968906aa6bc5ed0f82d74b5504b58afc9d3b (patch)
treefc41e825cc102358ba1abfc29c2b3b7f5c2f2c89 /src/libsyntax/ast.rs
parent76c0d687453cb1da2e76a1c8e007ac080f8aa0d7 (diff)
downloadrust-f9d0968906aa6bc5ed0f82d74b5504b58afc9d3b.tar.gz
rust-f9d0968906aa6bc5ed0f82d74b5504b58afc9d3b.zip
Make method and variable names more consistent
Diffstat (limited to 'src/libsyntax/ast.rs')
-rw-r--r--src/libsyntax/ast.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 7ff00123624..5ae520050e5 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -188,8 +188,8 @@ pub struct AngleBracketedArgs {
 
 impl AngleBracketedArgs {
     pub fn lifetimes(&self) -> impl DoubleEndedIterator<Item = &Lifetime> {
-        self.args.iter().filter_map(|p| {
-            if let GenericArg::Lifetime(lt) = p {
+        self.args.iter().filter_map(|arg| {
+            if let GenericArg::Lifetime(lt) = arg {
                 Some(lt)
             } else {
                 None
@@ -198,8 +198,8 @@ impl AngleBracketedArgs {
     }
 
     pub fn types(&self) -> impl DoubleEndedIterator<Item = &P<Ty>> {
-        self.args.iter().filter_map(|p| {
-            if let GenericArg::Type(ty) = p {
+        self.args.iter().filter_map(|arg| {
+            if let GenericArg::Type(ty) = arg {
                 Some(ty)
             } else {
                 None