fn load_settings_from_dir(project_dir: &PathBuf) -> Result<RaukSettings> {
    let mut rauk_config_path = project_dir.clone();
    rauk_config_path.push(RAUK_CONFIG_TOML);
    let mut file = File::open(rauk_config_path)?;
    let mut contents = String::new();
    file.read_to_string(&mut contents)?;
    let settings: RaukSettings = toml::from_str(&contents)?;
    Ok(settings)
}
/// Load settings from project directory if it exists.
Load settings from project directory if it exists.
Load settings from project directory if it exists .
fn load_settings_from_dir(project_dir: &PathBuf) -> Result<RaukSettings> {
    let mut rauk_config_path = project_dir.clone();
    rauk_config_path.push(RAUK_CONFIG_TOML);
    let mut file = File::open(rauk_config_path)?;
    let mut contents = String::new();
    file.read_to_string(&mut contents)?;
    let settings: RaukSettings = toml::from_str(&contents)?;
    Ok(settings)
}
fn load_settings_from_dir ( project_dir : & PathBuf ) -> Result < RaukSettings > { let mut rauk_config_path = project_dir . clone ( ) ; rauk_config_path . push ( RAUK_CONFIG_TOML ) ; let mut file = File :: open ( rauk_config_path ) ? ; let mut contents = String :: new ( ) ; file . read_to_string ( & mut contents ) ? ; let settings : RaukSettings = toml :: from_str ( & contents ) ? ; Ok ( settings ) }
Load settings from project directory if it exists.
Load settings from project directory if it exists .
project_dir
&PathBuf
project_dir
&PathBuf