You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lib.rs
    path of file: ./repos/moon/crates/core/lang/src
    
    the code of the file until where you have to start completion: mod config;

use rustc_hash::FxHashMap;
use std::fs;
use std::path::Path;

pub type LockfileDependencyVersions = FxHashMap<String, Vec<String>>;

#[inline]
pub fn has_vendor_installed_dependencies<T: AsRef<P
    
pub fn has_vendor_installed_dependencies<T: AsRef<Path>>(dir: T, vendor_dir: &str) -> bool {
    let vendor_path = dir.as_ref().join(vendor_dir);

    if !vendor_path.exists() {
        return false;
    }

    match fs::read_dir(vendor_path) {
        Ok(mut contents) => contents.next().is_some(),
        Err(_) => false,
    }
}