Add #[allow(unused_imports)] to generated code

This commit is contained in:
Chris Wong 2015-09-25 15:03:00 +12:00
parent 0311bab45b
commit 7fde2aafb1

View file

@ -70,6 +70,7 @@ impl<'cx> Renderer<'cx> {
quote_expr!(cx, {
let mut $result = Ok(());
$loop_label: loop {
#[allow(unused_imports)]
use ::std::fmt::Write;
match &mut $writer_expr {
$writer => {