async fn perform_download_addon(
    reason: DownloadReason,
    shared_client: Arc<HttpClient>,
    flavor: Flavor,
    addon: Addon,
    to_directory: PathBuf,
) -> (DownloadReason, Flavor, String, Result<(), DownloadError>) {
    (
        reason,
        flavor,
        addon.primary_folder_id.clone(),
        download_addon(&shared_client, &addon, &to_directory).await,
    )
}
/// Downloads the newest version of the addon.
/// This is for now only downloading from warcraftinterface.
Downloads the newest version of the addon.
This is for now only downloading from warcraftinterface.
Downloads the newest version of the addon . This is for now only downloading from warcraftinterface .
async fn perform_download_addon(
    reason: DownloadReason,
    shared_client: Arc<HttpClient>,
    flavor: Flavor,
    addon: Addon,
    to_directory: PathBuf,
) -> (DownloadReason, Flavor, String, Result<(), DownloadError>) {
    (
        reason,
        flavor,
        addon.primary_folder_id.clone(),
        download_addon(&shared_client, &addon, &to_directory).await,
    )
}
async fn perform_download_addon ( reason : DownloadReason , shared_client : Arc < HttpClient > , flavor : Flavor , addon : Addon , to_directory : PathBuf , ) -> ( DownloadReason , Flavor , String , Result < ( ) , DownloadError > ) { ( reason , flavor , addon . primary_folder_id . clone ( ) , download_addon ( & shared_client , & addon , & to_directory ) . await , ) }
Downloads the newest version of the addon.
Downloads the newest version of the addon .
reason
DownloadReason
shared_client
Arc<HttpClient>
flavor
Flavor
addon
Addon
to_directory
PathBuf
reason
DownloadReason
shared_client
Arc<HttpClient>
flavor
Flavor
addon
Addon
to_directory
PathBuf