]> git.proxmox.com Git - proxmox-backup.git/commitdiff
simplify var names
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Nov 2018 08:33:27 +0000 (09:33 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Nov 2018 08:33:27 +0000 (09:33 +0100)
src/section_config.rs

index 6138b521fe5314c017684bd10adf5bc909ff80b2..d42de9949a7633d41ad9d93a46c44c883b03a655 100644 (file)
@@ -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);
                     },