Make generic over readers

This commit is contained in:
TheZoq2 2023-01-09 18:45:10 +01:00
parent bc73db5dba
commit 79300afd43
6 changed files with 24 additions and 22 deletions

View file

@ -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> {