From 40f92b3b0595984f40aafd70ec4a5b9a3bdde47a Mon Sep 17 00:00:00 2001 From: yjhmelody <465402634@qq.com> Date: Tue, 22 Oct 2019 12:25:14 +0800 Subject: refactor maybe_append --- src/libsyntax/parse/parser.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/libsyntax/parse/parser.rs') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 9cb410a8ae3..d4d2f42446b 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -86,13 +86,6 @@ macro_rules! maybe_recover_from_interpolated_ty_qpath { } } -fn maybe_append(mut lhs: Vec, mut rhs: Option>) -> Vec { - if let Some(ref mut rhs) = rhs { - lhs.append(rhs); - } - lhs -} - #[derive(Debug, Clone, Copy, PartialEq)] enum PrevTokenKind { DocComment, -- cgit 1.4.1-3-g733a5