From 838067dcb0d88b29f695fc7f1c5d5bd73d4847f6 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Fri, 26 Jul 2019 11:15:39 +0000 Subject: [PATCH] esp8266at: Add 'dyn' for traits as requested by compiler --- util/esp8266at/src/handler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/esp8266at/src/handler.rs b/util/esp8266at/src/handler.rs index bf5bea1..b971a9a 100644 --- a/util/esp8266at/src/handler.rs +++ b/util/esp8266at/src/handler.rs @@ -119,10 +119,10 @@ where &mut self, resp: &Response, mut on_event: F, - debug: &mut fmt::Write, + debug: &mut dyn fmt::Write, ) -> Result<(), S::Error> where - F: FnMut(&mut Self, NetworkEvent, &mut fmt::Write), + F: FnMut(&mut Self, NetworkEvent, &mut dyn fmt::Write), { match resp { Response::Echo(data) => {