diff --git a/src/main.rs b/src/main.rs index 8d13562a7..56bf13136 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,7 +62,10 @@ fn main() -> std::io::Result<()> { let mut writer = output_type.handle().unwrap(); if let Err(error) = delta( - io::stdin().lock().lines().map(|l| l.unwrap()), + io::stdin() + .lock() + .lines() + .map(|l| l.unwrap_or_else(|_| "".to_string())), &config, &assets, &mut writer,