Initial stabilization #1

Merged
dzu merged 22 commits from stabilize-v1 into main 2026-02-21 04:54:42 +01:00
Showing only changes of commit 95e0187f5e - Show all commits

ench: filter out empty paths
All checks were successful
Build and update the action / build-and-upload (push) Successful in 43s

Artem Diachenko 2026-02-15 17:39:45 +00:00

View file

@ -3,7 +3,7 @@ use std::{ffi::OsString, path::PathBuf, str::FromStr, string::FromUtf8Error};
fn paths_parser(input: OsString) -> Result<Vec<PathBuf>, FromUtf8Error> { fn paths_parser(input: OsString) -> Result<Vec<PathBuf>, FromUtf8Error> {
let input = String::from_utf8(input.into_encoded_bytes())?; let input = String::from_utf8(input.into_encoded_bytes())?;
let mut paths = Vec::new(); let mut paths = Vec::new();
for path in input.split('\n') { for path in input.split('\n').filter(|s| !s.is_empty()) {
paths.push(match PathBuf::from_str(path) { paths.push(match PathBuf::from_str(path) {
Ok(ok) => ok, Ok(ok) => ok,
}); });