From 77cc5764b9d8b53e01788886d3b3882dffc0001e Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Thu, 11 Feb 2016 23:33:09 +0300 Subject: Remove some unnecessary indirection from AST structures --- src/libsyntax/util/parser_testing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/util/parser_testing.rs') diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs index 454b925a494..b0f4c2dcba5 100644 --- a/src/libsyntax/util/parser_testing.rs +++ b/src/libsyntax/util/parser_testing.rs @@ -64,7 +64,7 @@ pub fn string_to_item (source_str : String) -> Option> { } /// Parse a string, return a stmt -pub fn string_to_stmt(source_str : String) -> Option> { +pub fn string_to_stmt(source_str : String) -> Option { let ps = ParseSess::new(); with_error_checking_parse(source_str, &ps, |p| { p.parse_stmt() -- cgit 1.4.1-3-g733a5