From dfaf1c7da1e9f9c6133c28275a7b6d3aa7f7d2b3 Mon Sep 17 00:00:00 2001 From: Jimmy Cuadra Date: Fri, 4 May 2018 19:39:48 -0700 Subject: [PATCH] Rearrange some code. --- src/api/mod.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/api/mod.rs b/src/api/mod.rs index 30372e7d..8a4967e6 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -89,19 +89,6 @@ impl From> for Api { } } -pub struct Exprs { - pub inner: Vec, -} - -impl Synom for Exprs { - named!(parse -> Self, do_parse!( - exprs: many0!(syn!(Expr)) >> - (Exprs { - inner: exprs, - }) - )); -} - impl ToTokens for Api { fn to_tokens(&self, tokens: &mut Tokens) { let description = &self.metadata.description; @@ -364,3 +351,16 @@ impl ToTokens for Api { }); } } + +pub struct Exprs { + pub inner: Vec, +} + +impl Synom for Exprs { + named!(parse -> Self, do_parse!( + exprs: many0!(syn!(Expr)) >> + (Exprs { + inner: exprs, + }) + )); +}