From 9ebed9c42dd10bf7bef396a27edd2baa0619dd61 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 4 Apr 2020 13:33:45 +0200 Subject: Insert dyn for trait objects This was a change in Rust a while back, so we're updating to the new, non-deprecated syntax. --- src/statistics/trackers.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/statistics/trackers.rs') diff --git a/src/statistics/trackers.rs b/src/statistics/trackers.rs index 98915d2..16cb755 100644 --- a/src/statistics/trackers.rs +++ b/src/statistics/trackers.rs @@ -64,12 +64,12 @@ pub trait Tracker { /// if you plan on getting any data. pub trait RunnableTracker { /// See `Tracker.feed()`. Renamed to avoid conflicts. - fn run_feed(&mut self, event: &Event) -> Result<(), Box>; + fn run_feed(&mut self, event: &Event) -> Result<(), Box>; } impl> RunnableTracker for T { - fn run_feed(&mut self, event: &Event) -> Result<(), Box> { - self.feed(event).map_err(|e| Box::new(e) as Box) + fn run_feed(&mut self, event: &Event) -> Result<(), Box> { + self.feed(event).map_err(|e| Box::new(e) as Box) } } -- cgit v1.2.3