no need for assignment here

This commit is contained in:
Max Bradbury 2020-04-30 20:18:37 +01:00
parent c06dc237a6
commit 87101064f0
1 changed files with 1 additions and 2 deletions

View File

@ -124,9 +124,8 @@ fn segments_from_string(string: String) -> Vec<String> {
// are we inside `"""\n...\n"""`? if so, ignore empty lines
let mut inside_escaped_block = false;
let mut current_segment : Vec<String> = Vec::new();
let lines: Vec<&str> = string.lines().collect();
for line in lines {
for line in string.lines() {
if line == "\"\"\"" {
inside_escaped_block = ! inside_escaped_block;
}