diff --git a/src/main.rs b/src/main.rs index 889faf5..789c48d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,10 +87,9 @@ fn main_impl() -> Result> { // read temp file let mut after = vec![]; - let buffer = std::fs::read(file.path())?; - for line in buffer.lines() { - let line = line?; + let buffer = std::fs::read_to_string(file.path())?; + for line in buffer.lines() { if line.is_empty() || line.starts_with("//") { continue; }