refactor(config): handle recursive mut json values

* recurively drill down a mutable, recursive enumeration, without borrow
  checker issues. The obvious solution doesn't work, but should.
  Stackoverflow ?
* infrastructure to set actual value, with support for ararys, pods and
  hashmaps
This commit is contained in:
Sebastian Thiel
2015-05-12 19:48:37 +02:00
parent e434563215
commit 464394af22
2 changed files with 55 additions and 19 deletions

View File

@@ -405,7 +405,7 @@ for kvarg in ${opt_values(KEY_VALUE_ARG)} {
}
};
if let Some(type_info) = type_info {
temp_cursor.set_json_value(&mut object, value.unwrap(), type_info);
temp_cursor.set_json_value(&mut object, value.unwrap(), type_info, err);
}
}
let mut ${request_prop_name}: api::${request_prop_type} = json::value::from_value(object).unwrap();