(bytes: Vec<u8>)
| 563 | } |
| 564 | |
| 565 | fn split_nul(bytes: Vec<u8>) -> Vec<Vec<u8>> { |
| 566 | bytes |
| 567 | .split(|byte| *byte == 0) |
| 568 | .filter(|path| !path.is_empty()) |
| 569 | .map(<[u8]>::to_vec) |
| 570 | .collect() |
| 571 | } |
| 572 | |
| 573 | fn os_args(args: &[&str]) -> Vec<OsString> { |
| 574 | args.iter().map(OsString::from).collect() |
no test coverage detected