Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@ryansg.com>2020-04-06 22:38:44 -0400
committerMike Gerwitz <mike.gerwitz@ryansg.com>2020-04-28 09:06:25 -0400
commit7ed0691c4561b4747bbbe37830961ae057d5aab3 (patch)
treeee19e131290f5b0e3ebe3ceeeae58a107dae0098 /tamer/src/ld/poc.rs
parentfbfb3c4ba2a90df028bd02e268ce286f99c3e16d (diff)
downloadtame-7ed0691c4561b4747bbbe37830961ae057d5aab3.tar.gz
tame-7ed0691c4561b4747bbbe37830961ae057d5aab3.tar.bz2
tame-7ed0691c4561b4747bbbe37830961ae057d5aab3.zip
[DEV-7084] TAMER: fs: impl File for BufReader
This further simplifies the POC linker.
Diffstat (limited to 'tamer/src/ld/poc.rs')
-rw-r--r--tamer/src/ld/poc.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tamer/src/ld/poc.rs b/tamer/src/ld/poc.rs
index 117aeca..ef25659 100644
--- a/tamer/src/ld/poc.rs
+++ b/tamer/src/ld/poc.rs
@@ -133,15 +133,14 @@ fn load_xmlo<'a, 'i, I: Interner<'i>>(
let mut found: FxHashSet<&str> = Default::default();
- let cfile: CanonicalFile<fs::File> = match fs.open(path_str)? {
+ let cfile: CanonicalFile<BufReader<fs::File>> = match fs.open(path_str)? {
VisitOnceFile::FirstVisit(file) => file,
VisitOnceFile::Visited => return Ok(None),
};
let (path, file) = cfile.into();
- let reader = BufReader::new(file);
- let mut xmlo: XmloReader<'_, _, _> = (reader, interner).into();
+ let mut xmlo: XmloReader<'_, _, _> = (file, interner).into();
let mut elig = None;
let mut name: Option<&'i Symbol<'i>> = None;