From cf8f37449c7e008da0d9e35a8c53784fcfb0d2bd Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Wed, 28 Aug 2019 00:13:37 +0000 Subject: [PATCH] Fix one clippy::unneeded_unwrap warning --- src/dc_simplify.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dc_simplify.rs b/src/dc_simplify.rs index 8d8fe4ed7..c6f6f41cc 100644 --- a/src/dc_simplify.rs +++ b/src/dc_simplify.rs @@ -135,8 +135,8 @@ impl Simplify { } } } - if l_lastQuotedLine_0.is_some() { - l_first = l_lastQuotedLine_0.unwrap() + 1; + if let Some(last_quoted_line) = l_lastQuotedLine_0 { + l_first = last_quoted_line + 1; is_cut_at_begin = true } }