fn lrs_path_to_rs(path: Path) -> Result<Path,()> {
    match path.extension_str().unwrap_or("") {
        "lrs" => {
            let mut newpath = path.clone();
            newpath.set_extension("rs");
            Ok(newpath)
        }
        _ => {
            Err(())
        }
    }
}
/// Convert a lrs path to a rs path.
Convert a lrs path to a rs path.
Convert a lrs path to a rs path .
fn lrs_path_to_rs(path: Path) -> Result<Path,()> {
    match path.extension_str().unwrap_or("") {
        "lrs" => {
            let mut newpath = path.clone();
            newpath.set_extension("rs");
            Ok(newpath)
        }
        _ => {
            Err(())
        }
    }
}
fn lrs_path_to_rs ( path : Path ) -> Result < Path , ( ) > { match path . extension_str ( ) . unwrap_or ( " " ) { " " => { let mut newpath = path . clone ( ) ; newpath . set_extension ( " " ) ; Ok ( newpath ) } _ => { Err ( ( ) ) } } }
Convert a lrs path to a rs path.
Convert a lrs path to a rs path .
path
Path