From 17abad79f2130d67c3fe9eadb937e5e7badef192 Mon Sep 17 00:00:00 2001 From: Amrit kumar Mahto Date: Mon, 19 Jan 2026 01:53:19 +0530 Subject: [PATCH] fix: process_word_file propagates errors instead of panicking --- src/rust/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust/src/parser.rs b/src/rust/src/parser.rs index 8e9421f8..091eab6c 100644 --- a/src/rust/src/parser.rs +++ b/src/rust/src/parser.rs @@ -114,7 +114,7 @@ fn process_word_file(filename: &str, list: &mut Vec) -> Result<(), std:: for line in reader.lines() { num += 1; - let line = line.unwrap(); + let line = line?; if line.starts_with('#') { continue; }