Check that the writer implements fmt::Write
first
This commit is contained in:
parent
86c515e5c3
commit
44ca2aa82b
1 changed files with 4 additions and 1 deletions
|
@ -71,7 +71,10 @@ impl<'cx> Renderer<'cx> {
|
|||
$loop_label: loop {
|
||||
use ::std::fmt::Write;
|
||||
match &mut $writer_expr {
|
||||
$writer => { $stmts }
|
||||
$writer => {
|
||||
$writer as &mut ::std::fmt::Write;
|
||||
$stmts
|
||||
}
|
||||
}
|
||||
break $loop_label;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue