From 90cc11e9ceba64aa55421d8bc5298756c9caad43 Mon Sep 17 00:00:00 2001
From: Chris Wong <lambda.fairy@gmail.com>
Date: Sun, 16 Jun 2019 22:18:19 +1200
Subject: [PATCH] Add `dyn`

---
 maud/src/lib.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/maud/src/lib.rs b/maud/src/lib.rs
index ea13b92..93e2134 100644
--- a/maud/src/lib.rs
+++ b/maud/src/lib.rs
@@ -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)
         }
     }