Public API and docs

This commit is contained in:
2023-05-26 15:23:15 +01:00
parent 3c1a6e2be2
commit fdf18e6ff8
99 changed files with 503 additions and 406 deletions

View File

@@ -90,17 +90,17 @@ fn apply_aliases_rec(
.rules
.iter()
.map(|rule| {
let Rule { source, prio, target } = rule;
let Rule { pattern, prio, template } = rule;
Rule {
prio: *prio,
source: Rc::new(
source
pattern: Rc::new(
pattern
.iter()
.map(|expr| process_expr(expr, alias_map, injected_as, i))
.collect::<Vec<_>>(),
),
target: Rc::new(
target
template: Rc::new(
template
.iter()
.map(|expr| process_expr(expr, alias_map, injected_as, i))
.collect::<Vec<_>>(),