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]]
|
[[package]]
|
||||||
name = "config"
|
name = "config"
|
||||||
version = "0.1.5"
|
version = "0.1.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"regex",
|
"regex",
|
||||||
"toml",
|
"toml",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "config"
|
name = "config"
|
||||||
version = "0.1.5"
|
version = "0.1.6"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
|
@ -73,9 +73,11 @@ fn main() -> Result<(), Box<dyn Error>>{
|
||||||
section = sub.unwrap();
|
section = sub.unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for key in section.keys() {
|
for (key, value) in section.iter() {
|
||||||
|
if value.is_table() {
|
||||||
println!("{}", key);
|
println!("{}", key);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue