Skip to content

Commit 7d2df21

Browse files
committed
fix(rust version):do not use nightly feature
1 parent e784a44 commit 7d2df21

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

wave-insight-lib/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(test)]
2-
#![feature(buf_read_has_data_left)]
31

42
pub mod data_struct;
53
pub mod parser;

wave-insight-lib/src/parser/vcd_parser.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ pub fn vcd_parser_path(path: std::path::PathBuf, raw_module: &mut Module) -> (Mo
2525
let mut read_line = std::io::BufReader::new(file);
2626
let mut buf = String::new();
2727
let mut state = ParseState{clk: 0, module: raw_module.clone(), value: ModuleValue::new(), stack: vec![]};
28-
while read_line.has_data_left().unwrap() {
29-
read_line.read_line(&mut buf).unwrap();
28+
while read_line.read_line(&mut buf).unwrap() > 0 {
3029
parsing_line(&mut state, &buf);
3130
buf.clear();
3231
}
3332
state.module.end_clock = state.clk;
3433
(state.module, state.value)
3534
}
36-
35+
/*
3736
extern crate test;
3837
3938
#[cfg(test)]
@@ -71,4 +70,4 @@ mod bench {
7170
vcd_parser_path(dest_path, &mut Module::new())
7271
})
7372
}
74-
}
73+
}*/

0 commit comments

Comments
 (0)