Skip to content

Commit

Permalink
fix some "trait objects without explicit dyn" warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Etter committed Mar 3, 2020
1 parent b3c3443 commit 9a31b19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stream_parser/file_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ impl DataFormat {

#[derive(Default)]
pub struct LogParser<'c> {
data_message_callback: Option<&'c mut FnMut(&model::DataMessage)>,
logged_string_message_callback: Option<&'c mut FnMut(&model::LoggedStringMessage)>,
parameter_message_callback: Option<&'c mut FnMut(&model::ParameterMessage)>,
data_message_callback: Option<&'c mut dyn FnMut(&model::DataMessage)>,
logged_string_message_callback: Option<&'c mut dyn FnMut(&model::LoggedStringMessage)>,
parameter_message_callback: Option<&'c mut dyn FnMut(&model::ParameterMessage)>,
version: u8,
timestamp: u64,
leftover: Vec<u8>,
Expand Down

0 comments on commit 9a31b19

Please sign in to comment.