Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@ryansg.com>2020-04-14 16:20:13 -0400
committerMike Gerwitz <mike.gerwitz@ryansg.com>2020-04-28 09:06:25 -0400
commitecc2e33ba77a19478d935973f6760af0f4961468 (patch)
treecde37396ff0b993e559e88ac9c8e10885a5deadd /tamer/src/ld/poc.rs
parent323ea79bf8b15a573b3cc0bffb157ba7b5f99276 (diff)
downloadtame-ecc2e33ba77a19478d935973f6760af0f4961468.tar.gz
tame-ecc2e33ba77a19478d935973f6760af0f4961468.tar.bz2
tame-ecc2e33ba77a19478d935973f6760af0f4961468.zip
[DEV-7084] TAMER: xmlo::AsgBuilder: Accept XmloResult iterator
This flips the API from using XmloWriter as the context to using Asg and consuming anything that can produce XmloResults. This not only makes more sense, but avoids having to create a trait for XmloReader, and simplifies the trait bounds we have to concern ourselves with.
Diffstat (limited to 'tamer/src/ld/poc.rs')
-rw-r--r--tamer/src/ld/poc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tamer/src/ld/poc.rs b/tamer/src/ld/poc.rs
index 0a395ba..32a965a 100644
--- a/tamer/src/ld/poc.rs
+++ b/tamer/src/ld/poc.rs
@@ -127,7 +127,7 @@ fn load_xmlo<'a, 'i, I: Interner<'i>, P: AsRef<Path>>(
let xmlo: XmloReader<'_, _, _> = (file, interner).into();
- let mut state = xmlo.build(depgraph, state)?;
+ let mut state = depgraph.import_xmlo(xmlo, state)?;
let mut dir: PathBuf = path.clone();
dir.pop();