summaryrefslogtreecommitdiff
path: root/2025/read.rs
diff options
context:
space:
mode:
Diffstat (limited to '2025/read.rs')
-rw-r--r--2025/read.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/2025/read.rs b/2025/read.rs
index ebd41bd..871b0bd 100644
--- a/2025/read.rs
+++ b/2025/read.rs
@@ -5,5 +5,6 @@ pub fn read(file: impl AsRef<Path>, p: impl Pattern) -> Vec<String> {
.expect("Failed to read file")
.split(p)
.map(|l| l.to_string())
+ .filter(|s| !s.is_empty())
.collect()
}