diff options
| author | troido <troido@protonmail.com> | 2020-05-21 15:26:12 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-06-05 22:27:54 +0200 |
| commit | 1899b27b791734a6b72e28cfb1420536c6035ee4 (patch) | |
| tree | cbb908f05c1daa1c9fb996d474a34f0b6f4aba76 /src/encyclopedia.rs | |
| parent | f47034bdf86e7ddc831ecb8f50689b9b07a0f6ca (diff) | |
added exchanger as seperate component/system; refactored other interactions; parameter parsing returns result instead of option
Diffstat (limited to 'src/encyclopedia.rs')
| -rw-r--r-- | src/encyclopedia.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encyclopedia.rs b/src/encyclopedia.rs index e100cad..70f0ac6 100644 --- a/src/encyclopedia.rs +++ b/src/encyclopedia.rs @@ -94,7 +94,7 @@ impl Encyclopedia { let mut assemblage = assemblages.get(&enttype).ok_or(perr!("template name '{:?}' does not point to not an assemblage", enttype))?.clone(); for arg in assemblage.arguments.iter_mut() { if let Some(x) = values.get(&arg.0) { - let param = Parameter::from_typed_json(arg.1, x).ok_or(perr!("subtitution parameter has wrong type"))?; + let param = Parameter::from_typed_json(arg.1, x)?; arg.2 = Some(param); } } |
