Add dyn
This commit is contained in:
parent
d18cd75b39
commit
90cc11e9ce
1 changed files with 2 additions and 2 deletions
|
@ -162,12 +162,12 @@ mod iron_support {
|
|||
fn modify(self, response: &mut Response) {
|
||||
response
|
||||
.set_mut(Header(ContentType::html()))
|
||||
.set_mut(Box::new(self) as Box<WriteBody>);
|
||||
.set_mut(Box::new(self) as Box<dyn WriteBody>);
|
||||
}
|
||||
}
|
||||
|
||||
impl WriteBody for PreEscaped<String> {
|
||||
fn write_body(&mut self, body: &mut io::Write) -> io::Result<()> {
|
||||
fn write_body(&mut self, body: &mut dyn io::Write) -> io::Result<()> {
|
||||
self.0.write_body(body)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue