(subpath: Option<&str>, mount_type: &str)
| 700 | } |
| 701 | |
| 702 | fn reject_subpath(subpath: Option<&str>, mount_type: &str) -> Result<(), String> { |
| 703 | let Some(subpath) = subpath else { |
| 704 | return Ok(()); |
| 705 | }; |
| 706 | driver_mounts::validate_mount_subpath(subpath)?; |
| 707 | Err(format!("{mount_type} do not support subpath")) |
| 708 | } |
| 709 | |
| 710 | fn validate_optional_positive_integral_i64( |
| 711 | value: Option<f64>, |
no test coverage detected