fn convert_forward_slashes<'a>(rel_path: impl Into<Cow<'a, Utf8Path>>) -> Utf8PathBuf {
    let rel_path = rel_path.into();
    debug_assert!(
        rel_path.is_relative(),
        "path {} should be relative",
        rel_path,
    );

    cfg_if::cfg_if! {
        if #[cfg(windows)] {
            rel_path.as_str().replace("\\", "/").into()
        } else {
            rel_path.into_owned()
        }
    }
}
/// Replace backslashes in a relative path with forward slashes on Windows.
Replace backslashes in a relative path with forward slashes on Windows.
Replace backslashes in a relative path with forward slashes on Windows .
fn convert_forward_slashes<'a>(rel_path: impl Into<Cow<'a, Utf8Path>>) -> Utf8PathBuf {
    let rel_path = rel_path.into();
    debug_assert!(
        rel_path.is_relative(),
        "path {} should be relative",
        rel_path,
    );
    cfg_if::cfg_if! {
        if #[cfg(windows)] {
            rel_path.as_str().replace("\\", "/").into()
        } else {
            rel_path.into_owned()
        }
    }
}
fn convert_forward_slashes < ' a > ( rel_path : impl Into < Cow < ' a , Utf8Path > > ) -> Utf8PathBuf { let rel_path = rel_path . into ( ) ; debug_assert ! ( rel_path is_relative ( ) " " rel_path ) ; cfg_if :: cfg_if ! { if [ cfg ( windows ) ] { rel_path as_str ( ) replace ( " \\ " " " ) into ( ) } else { rel_path into_owned ( ) } } }
Replace backslashes in a relative path with forward slashes on Windows.
Replace backslashes in a relative path with forward slashes on Windows .
rel_path
impl Into<Cow<'a, Utf8Path>>
rel_path
impl Into<Cow<'a, Utf8Path>>