Move variable assignment to clarify use.

This commit is contained in:
Thomas Hartmann 2019-10-13 23:09:40 +02:00
parent 38b5979881
commit 20e891db6e

View file

@ -39,7 +39,6 @@ fn from_ssv_string_to_value(
tag: impl Into<Tag>,
) -> Result<Tagged<Value>, &str> {
let mut lines = s.lines();
let tag = tag.into();
let headers = lines
.next()
@ -56,6 +55,7 @@ fn from_ssv_string_to_value(
headers
};
let tag = tag.into();
let rows = lines
.map(|l| {
let mut row = TaggedDictBuilder::new(tag);