Add #[allow(unused_imports)]
to generated code
This prevents a warning when the trait is already in scope.
This commit is contained in:
parent
cd5e247f53
commit
98d0402d87
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ impl<'cx, 'a> Renderer<'cx, 'a> {
|
|||
pub fn splice(&mut self, expr: P<Expr>) {
|
||||
let w = self.writer;
|
||||
let expr = quote_expr!(self.cx, {
|
||||
#[allow(unused_imports)]
|
||||
use ::maud::Render as __maud_Render;
|
||||
$expr.render_to(&mut $w);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue