fn construct_path_from_binary_path() -> anyhow::Result<PathBuf> {
    let mut path = std::env::current_exe()?;
    path.set_file_name(SETTINGS_FILE);

    Ok(path)
}
/// Generate settings path from current binary's path
///
/// Example: BINARY_PATH/pass4thewin.toml
Generate settings path from current binary's path
Example: BINARY_PATH/pass4thewin.toml
Generate settings path from current binary ' s path Example : BINARY_PATH / pass4thewin . toml
fn construct_path_from_binary_path() -> anyhow::Result<PathBuf> {
    let mut path = std::env::current_exe()?;
    path.set_file_name(SETTINGS_FILE);
    Ok(path)
}
fn construct_path_from_binary_path ( ) -> anyhow :: Result < PathBuf > { let mut path = std :: env :: current_exe ( ) ? ; path . set_file_name ( SETTINGS_FILE ) ; Ok ( path ) }
Generate settings path from current binary's path
Example: BINARY_PATH/pass4thewin.toml
Generate settings path from current binary ' s path Example : BINARY_PATH / pass4thewin . toml