From 9c1b42d28ee7bbe586e639e083b7c830adac5ef3 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 29 Nov 2018 09:33:27 +0100 Subject: [PATCH] simplify var names --- src/section_config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/section_config.rs b/src/section_config.rs index 6138b521..d42de994 100644 --- a/src/section_config.rs +++ b/src/section_config.rs @@ -110,10 +110,10 @@ impl SectionConfig { for (key, value) in section_config.as_object().unwrap() { let text = match value { - Value::Null => { continue; }, // do nothing ? - Value::Bool(bv) => bv.to_string(), - Value::String(str) => str.to_string(), - Value::Number(num) => num.to_string(), + Value::Null => { continue; }, // do nothing (delete) + Value::Bool(v) => v.to_string(), + Value::String(v) => v.to_string(), + Value::Number(v) => v.to_string(), _ => { bail!("file {}: got unsupported type in section {} key {}", filename, id, key); },