fixed list flag returning non-table values
This commit is contained in:
parent
e9021abf60
commit
e1f0270d6f
3 changed files with 6 additions and 4 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -13,7 +13,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "config"
|
||||
version = "0.1.5"
|
||||
version = "0.1.6"
|
||||
dependencies = [
|
||||
"regex",
|
||||
"toml",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -73,8 +73,10 @@ fn main() -> Result<(), Box<dyn Error>>{
|
|||
section = sub.unwrap();
|
||||
}
|
||||
}
|
||||
for key in section.keys() {
|
||||
println!("{}", key);
|
||||
for (key, value) in section.iter() {
|
||||
if value.is_table() {
|
||||
println!("{}", key);
|
||||
}
|
||||
}
|
||||
return Ok(());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue