simplify var names

This commit is contained in:
Dietmar Maurer 2018-11-29 09:33:27 +01:00
parent e189c93b8c
commit 9c1b42d28e
1 changed files with 4 additions and 4 deletions

View File

@ -110,10 +110,10 @@ impl SectionConfig {
for (key, value) in section_config.as_object().unwrap() { for (key, value) in section_config.as_object().unwrap() {
let text = match value { let text = match value {
Value::Null => { continue; }, // do nothing ? Value::Null => { continue; }, // do nothing (delete)
Value::Bool(bv) => bv.to_string(), Value::Bool(v) => v.to_string(),
Value::String(str) => str.to_string(), Value::String(v) => v.to_string(),
Value::Number(num) => num.to_string(), Value::Number(v) => v.to_string(),
_ => { _ => {
bail!("file {}: got unsupported type in section {} key {}", filename, id, key); bail!("file {}: got unsupported type in section {} key {}", filename, id, key);
}, },