chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
222d225
)
wip parsing, tolerate hyphens in config
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 23 Jul 2021 22:32:52 +0000
(23:32 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 23 Jul 2021 22:32:52 +0000
(23:32 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/config.rs
patch
|
blob
|
history
diff --git
a/src/config.rs
b/src/config.rs
index 8e1f26a57549c4951133ff3fa30091c04f2967ba..39b1f7255c10c2b775da7be964625f1c65ebfad6 100644
(file)
--- a/
src/config.rs
+++ b/
src/config.rs
@@
-145,7
+145,10
@@
impl Aggregate {
.or_default()
.extend(
vars.into_iter()
- .map(|(k,val)| (k, RawVal { val, loc: loc.clone() }))
+ .map(|(k,val)| {
+ (k.replace('-',"_"),
+ RawVal { val, loc: loc.clone() })
+ })
);
}
None