Fix one clippy::unneeded_unwrap warning

This commit is contained in:
Dmitry Bogatov
2019-08-28 00:17:12 +00:00
parent cf8f37449c
commit 3d9129c198

View File

@@ -100,8 +100,8 @@ impl Simplify {
break; break;
} }
} }
if l_lastQuotedLine.is_some() { if let Some(last_quoted_line) = l_lastQuotedLine {
l_last = l_lastQuotedLine.unwrap(); l_last = last_quoted_line;
is_cut_at_end = true; is_cut_at_end = true;
if l_last > 1 { if l_last > 1 {
if is_empty_line(lines[l_last - 1]) { if is_empty_line(lines[l_last - 1]) {