diff --git a/src/main.rs b/src/main.rs index 74caf79..f1368df 100644 --- a/src/main.rs +++ b/src/main.rs @@ -132,7 +132,7 @@ impl Context { let mut text_buf = Vec::new(); convert(decoded_text.lines(), &mut text_buf); let text = std::str::from_utf8(text_buf.as_slice()) - .unwrap() + .unwrap_or_default() .to_string(); local_comments.push(Comment { name, text });