mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
handler multiplexer
This commit is contained in:
parent
5f6cfe077e
commit
1709082228
8 changed files with 47 additions and 12 deletions
|
|
@ -32,7 +32,7 @@ impl MessageHandler for AllMessages {
|
|||
|
||||
fn handle_string_entry(&mut self, table: &String, _index: usize, entry: &StringTableEntry) {}
|
||||
|
||||
fn get_output(self, state: ParserState) -> Self::Output {
|
||||
fn get_output(self, state: &ParserState) -> Self::Output {
|
||||
test::black_box(true)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,13 +26,13 @@ impl MessageHandler for SendPropAnalyser {
|
|||
false
|
||||
}
|
||||
|
||||
fn get_output(self, state: ParserState) -> Self::Output {
|
||||
fn get_output(self, state: &ParserState) -> Self::Output {
|
||||
state
|
||||
.send_tables
|
||||
.into_iter()
|
||||
.iter()
|
||||
.map(|v| ParseSendTable {
|
||||
name: v.name,
|
||||
props: v.props,
|
||||
name: v.name.clone(),
|
||||
props: v.props.clone(),
|
||||
needs_decoder: v.needs_decoder,
|
||||
})
|
||||
.collect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue