fixed list flag returning non-table values

This commit is contained in:
Valerie Wolfe 2022-06-29 16:19:41 -04:00
parent e9021abf60
commit e1f0270d6f
3 changed files with 6 additions and 4 deletions

2
Cargo.lock generated
View file

@ -13,7 +13,7 @@ dependencies = [
[[package]]
name = "config"
version = "0.1.5"
version = "0.1.6"
dependencies = [
"regex",
"toml",

View file

@ -1,6 +1,6 @@
[package]
name = "config"
version = "0.1.5"
version = "0.1.6"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -73,9 +73,11 @@ fn main() -> Result<(), Box<dyn Error>>{
section = sub.unwrap();
}
}
for key in section.keys() {
for (key, value) in section.iter() {
if value.is_table() {
println!("{}", key);
}
}
return Ok(());
}