mirror of
https://github.com/nushell/nushell
synced 2024-12-28 05:53:09 +00:00
Move variable assignment to clarify use.
This commit is contained in:
parent
38b5979881
commit
20e891db6e
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,6 @@ fn from_ssv_string_to_value(
|
||||||
tag: impl Into<Tag>,
|
tag: impl Into<Tag>,
|
||||||
) -> Result<Tagged<Value>, &str> {
|
) -> Result<Tagged<Value>, &str> {
|
||||||
let mut lines = s.lines();
|
let mut lines = s.lines();
|
||||||
let tag = tag.into();
|
|
||||||
|
|
||||||
let headers = lines
|
let headers = lines
|
||||||
.next()
|
.next()
|
||||||
|
@ -56,6 +55,7 @@ fn from_ssv_string_to_value(
|
||||||
headers
|
headers
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let tag = tag.into();
|
||||||
let rows = lines
|
let rows = lines
|
||||||
.map(|l| {
|
.map(|l| {
|
||||||
let mut row = TaggedDictBuilder::new(tag);
|
let mut row = TaggedDictBuilder::new(tag);
|
||||||
|
|
Loading…
Reference in a new issue