1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 18:24:05 +02:00

pass message to analysers by ref

This commit is contained in:
Robin Appelman 2019-08-29 23:28:26 +02:00
commit 4bd352feb9
10 changed files with 42 additions and 51 deletions

View file

@ -26,7 +26,7 @@ impl MessageHandler for AllMessages {
true
}
fn handle_message(&mut self, message: Message, tick: u32) {
fn handle_message(&mut self, message: &Message, tick: u32) {
test::black_box(message);
}

View file

@ -26,10 +26,6 @@ impl MessageHandler for SendPropAnalyser {
false
}
fn handle_message(&mut self, message: Message, tick: u32) {}
fn handle_string_entry(&mut self, table: &String, _index: usize, entry: &StringTableEntry) {}
fn get_output(self, state: ParserState) -> Self::Output {
state
.send_tables