commit | 04f42796066993499b7b2be050e95185cff47655 | [log] [tgz] |
---|---|---|
author | Peter Hall <peterjoel@gmail.com> | Tue Apr 02 16:58:45 2019 +0200 |
committer | Peter Hall <peterjoel@gmail.com> | Wed Apr 03 14:53:14 2019 +0200 |
tree | d45dea6f0e3e63ed09cc90c035748b1e7ed686e4 | |
parent | c1a8efe882235a09a828628b2e3d5c001d4a4f5c [diff] [blame] |
Parse impls for more expr types Including: loop, while, for, if, literals
diff --git a/src/path.rs b/src/path.rs index 20c70cd..afdecc2 100644 --- a/src/path.rs +++ b/src/path.rs
@@ -232,7 +232,7 @@ } if input.peek(Lit) { - let lit = input.call(expr::parsing::expr_lit)?; + let lit = input.parse()?; return Ok(GenericArgument::Const(Expr::Lit(lit))); }