commit | 2c13645d7b6cc728d880d65cafdd4795232b64ab | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Wed Dec 27 14:13:32 2017 -0500 |
committer | David Tolnay <dtolnay@gmail.com> | Wed Dec 27 14:13:32 2017 -0500 |
tree | 3525602f1e77d16b5c89e20b95136269ea70d457 | |
parent | d67fb7572a65065015aacfe16af3004a3cfb8690 [diff] [blame] |
Avoid recompiling the implementation of many0 so much
diff --git a/src/file.rs b/src/file.rs index fd3d5b2..fe06958 100644 --- a/src/file.rs +++ b/src/file.rs
@@ -16,8 +16,8 @@ impl Synom for File { named!(parse -> Self, do_parse!( - attrs: many0!(call!(Attribute::parse_inner)) >> - items: many0!(syn!(Item)) >> + attrs: many0!(Attribute::parse_inner) >> + items: many0!(Item::parse) >> (File { shebang: None, attrs: attrs,