diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-12-04 18:12:25 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-12-04 20:56:58 +0800 |
| commit | f928714eaeabb1497afca28f877ba8bb5fede25f (patch) | |
| tree | b5069e11f9aa6e9c510d58024e6df348dd60808d /2025/read.rs | |
| parent | 4250e02b0f08e3389fdef0500de08ab74ffa2611 (diff) | |
new: day 4main
Diffstat (limited to '2025/read.rs')
| -rw-r--r-- | 2025/read.rs | 1 |
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() } |
