pub fn find_vector(final_component: &str) -> PathBuf {
    let cwd = std::env::current_dir().expect("no cwd?");
    let git_dir = cwd
        .ancestors() // . ; ../ ; ../../ ; ...
        .find(|d| d.join(".git").is_dir())
        .expect("could not find .git somewhere! confused about workspace layout");

    git_dir.join("vectors").join(final_component)
}
/// Find a vector file assuming that a git checkout exists
// TODO: look instead for the workspace `Cargo.toml`? use a cargo env var?
Find a vector file assuming that a git checkout exists
TODO: look instead for the workspace `Cargo.toml`.
Find a vector file assuming that a git checkout exists TODO : look instead for the workspace ` Cargo . toml ` .
pub fn find_vector(final_component: &str) -> PathBuf {
    let cwd = std::env::current_dir().expect("no cwd?");
    let git_dir = cwd
        .ancestors() // . ; ../ ; ../../ ; ...
        .find(|d| d.join(".git").is_dir())
        .expect("could not find .git somewhere! confused about workspace layout");
    git_dir.join("vectors").join(final_component)
}
pub fn find_vector ( final_component : & str ) -> PathBuf { let cwd = std :: env :: current_dir ( ) . expect ( " " ) ; let git_dir = cwd . ancestors ( ) // . ; ../ ; ../../ ; ... . find ( | d | d . join ( " " ) . is_dir ( ) ) . expect ( " " ) ; git_dir . join ( " " ) . join ( final_component ) }
Find a vector file assuming that a git checkout exists
TODO: look instead for the workspace `Cargo.toml`?
Find a vector file assuming that a git checkout exists TODO : look instead for the workspace ` Cargo . toml ` ?
final_component
&str
final_component
&str