From 3d9129c198d913833840b5310d3ad938f4c16072 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Wed, 28 Aug 2019 00:17:12 +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 c6f6f41cc..c32ccbb19 100644 --- a/src/dc_simplify.rs +++ b/src/dc_simplify.rs @@ -100,8 +100,8 @@ impl Simplify { break; } } - if l_lastQuotedLine.is_some() { - l_last = l_lastQuotedLine.unwrap(); + if let Some(last_quoted_line) = l_lastQuotedLine { + l_last = last_quoted_line; is_cut_at_end = true; if l_last > 1 { if is_empty_line(lines[l_last - 1]) {