Move file to let binding (and fix import tests)

This commit is contained in:
ConnorSkees 2020-01-20 17:01:47 -05:00
parent 296bc864fa
commit 6242ff8417

View File

@ -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)