fn has_intercom_fmt(dir: &PathBuf) -> Option<PathBuf>
{
    #[cfg(windows)]
    let intercom_fmt = dir.join("intercom-fmt.exe");

    #[cfg(not(windows))]
    let intercom_fmt = dir.join("intercom-fmt");

    if intercom_fmt.exists() && intercom_fmt.metadata().unwrap().is_file() {
        Some(intercom_fmt)
    } else {
        None
    }
}
/// Determines if the given directory has intercom-fmt
Determines if the given directory has intercom-fmt
Determines if the given directory has intercom - fmt
fn has_intercom_fmt(dir: &PathBuf) -> Option<PathBuf>
{
    #[cfg(windows)]
    let intercom_fmt = dir.join("intercom-fmt.exe");
    #[cfg(not(windows))]
    let intercom_fmt = dir.join("intercom-fmt");
    if intercom_fmt.exists() && intercom_fmt.metadata().unwrap().is_file() {
        Some(intercom_fmt)
    } else {
        None
    }
}
fn has_intercom_fmt ( dir : & PathBuf ) -> Option < PathBuf > { # [ cfg ( windows ) ] let intercom_fmt = dir . join ( " " ) ; # [ cfg ( not ( windows ) ) ] let intercom_fmt = dir . join ( " " ) ; if intercom_fmt . exists ( ) && intercom_fmt . metadata ( ) . unwrap ( ) . is_file ( ) { Some ( intercom_fmt ) } else { None } }
Determines if the given directory has intercom-fmt
Determines if the given directory has intercom - fmt
dir
&PathBuf
dir
&PathBuf