removed redundant array code

This commit is contained in:
2023-07-13 12:29:40 -06:00
parent f33c18a2b3
commit 0fbe8f7733
4 changed files with 47 additions and 28 deletions

View File

@@ -77,9 +77,7 @@ fn parse_toml(
};
match value {
Value::Array(array) => {
for v in array.iter() { out.push_str(&format!("{}\n", v.to_string())); }
},
Value::Array(_) => {},
Value::Boolean(boolean) => out.push_str(&format!("{:?}\n", boolean)),
Value::Datetime(datetime) => out.push_str(&format!("{:?}\n", datetime)),
Value::Float(float) => out.push_str(&format!("{:?}\n", float)),