From 6242ff8417f49c5dc7ccf288d7ae03512ef85298 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Mon, 20 Jan 2020 17:01:47 -0500 Subject: [PATCH] Move file to let binding (and fix import tests) --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 9aa4064..8abc369 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1221,7 +1221,8 @@ mod test_imports { #[test] fn $func() { $( - write!(Builder::new().rand_bytes(0).prefix("").suffix($name).tempfile_in("").unwrap(), $content).unwrap(); + let mut f = Builder::new().rand_bytes(0).prefix("").suffix($name).tempfile_in("").unwrap(); + write!(f, $content).unwrap(); )* let mut buf = Vec::new(); StyleSheet::new($input)