(options: &[String])
| 748 | } |
| 749 | |
| 750 | fn validate_tmpfs_options(options: &[String]) -> Result<Vec<String>, String> { |
| 751 | options |
| 752 | .iter() |
| 753 | .map(|option| { |
| 754 | let option = option.trim(); |
| 755 | if option.is_empty() { |
| 756 | return Err("tmpfs options must not contain empty values".to_string()); |
| 757 | } |
| 758 | Ok(option.to_string()) |
| 759 | }) |
| 760 | .collect() |
| 761 | } |
| 762 | |
| 763 | /// Build the Podman container creation JSON spec. |
| 764 | #[cfg(test)] |
no test coverage detected