From 1a44e04333963cd74652177365802936beb94322 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 4 Oct 2021 16:34:25 -0400 Subject: [PATCH] tamer: ld: Write is unused outside of flag --- tamer/src/ld/poc.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tamer/src/ld/poc.rs b/tamer/src/ld/poc.rs index 74ebf86d..52c3ffb7 100644 --- a/tamer/src/ld/poc.rs +++ b/tamer/src/ld/poc.rs @@ -35,7 +35,7 @@ use fxhash::FxBuildHasher; use petgraph_graphml::GraphMl; use std::error::Error; use std::fs; -use std::io::{BufReader, BufWriter, Write}; +use std::io::{BufReader, BufWriter}; use std::path::{Path, PathBuf}; type LinkerAsg = DefaultAsg; @@ -242,6 +242,7 @@ fn output_xmle<'a>( } #[cfg(feature = "wip-xir-xmle-writer")] { + use std::io::Write; use crate::ir::xir::writer::XmlWriter; use crate::obj::xmle::xir::lower_iter;