Make generic over readers
This commit is contained in:
parent
bc73db5dba
commit
79300afd43
6 changed files with 24 additions and 22 deletions
|
@ -12,8 +12,8 @@ use super::super::reader::{WordReader, Cursor, Line, Word, next_word};
|
|||
use super::super::types::{SignalIdx, VCD};
|
||||
|
||||
|
||||
pub(super) fn parse_events<'a>(
|
||||
word_reader: &mut WordReader,
|
||||
pub(super) fn parse_events<'a, R: std::io::Read>(
|
||||
word_reader: &mut WordReader<R>,
|
||||
vcd: &'a mut VCD,
|
||||
signal_map: &mut HashMap<String, SignalIdx>,
|
||||
) -> Result<(), String> {
|
||||
|
|
Reference in a new issue