pub fn load_settings(project_dir: &PathBuf) -> Result<RaukSettings> {
    let settings = if settings_file_exists(&project_dir) {
        info!("Loading user settings from file");
        load_settings_from_dir(&project_dir)?
    } else {
        info!("No user settings file found");
        RaukSettings::new()
    };

    Ok(settings)
}
/// Loads settings from file if it exists, otherwise creates an empty
/// settings struct.
Loads settings from file if it exists, otherwise creates an empty
settings struct.
Loads settings from file if it exists otherwise creates an empty settings struct .
pub fn load_settings(project_dir: &PathBuf) -> Result<RaukSettings> {
    let settings = if settings_file_exists(&project_dir) {
        info!("Loading user settings from file");
        load_settings_from_dir(&project_dir)?
    } else {
        info!("No user settings file found");
        RaukSettings::new()
    };
    Ok(settings)
}
pub fn load_settings ( project_dir : & PathBuf ) -> Result < RaukSettings > { let settings = if settings_file_exists ( & project_dir ) { info ! ( " " ) ; load_settings_from_dir ( & project_dir ) ? } else { info ! ( " " ) ; RaukSettings :: new ( ) } ; Ok ( settings ) }
Loads settings from file if it exists, otherwise creates an empty
settings struct.
Loads settings from file if it exists otherwise creates an empty settings struct .
project_dir
&PathBuf
project_dir
&PathBuf