no need for assignment here
This commit is contained in:
parent
c06dc237a6
commit
87101064f0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue