1
1
//! This module hooks up [AppDelegate]s to arbitrary implementations of [AppDownloader] and
2
2
//! [fetch::ProgressUpdater].
3
3
4
- use super :: { AppDelegate , AppDelegateQueue } ;
5
- use crate :: { app:: AppDownloader , fetch} ;
4
+ use crate :: delegate:: { AppDelegate , AppDelegateQueue } ;
5
+ use mullvad_update:: {
6
+ app:: { self , AppDownloader } ,
7
+ fetch,
8
+ } ;
6
9
7
10
/// [AppDownloader] that delegates the actual work to some underlying `downloader` and uses it to
8
11
/// update a UI.
@@ -28,7 +31,7 @@ impl<Delegate: AppDelegate, Downloader: AppDownloader + Send + 'static>
28
31
impl < Delegate : AppDelegate , Downloader : AppDownloader + Send + ' static > AppDownloader
29
32
for UiAppDownloader < Delegate , Downloader >
30
33
{
31
- async fn download_signature ( & mut self ) -> Result < ( ) , crate :: app:: DownloadError > {
34
+ async fn download_signature ( & mut self ) -> Result < ( ) , app:: DownloadError > {
32
35
if let Err ( error) = self . downloader . download_signature ( ) . await {
33
36
self . queue . queue_main ( move |self_| {
34
37
self_. set_status_text ( "ERROR: Failed to retrieve signature." ) ;
@@ -41,7 +44,7 @@ impl<Delegate: AppDelegate, Downloader: AppDownloader + Send + 'static> AppDownl
41
44
}
42
45
}
43
46
44
- async fn download_executable ( & mut self ) -> Result < ( ) , crate :: app:: DownloadError > {
47
+ async fn download_executable ( & mut self ) -> Result < ( ) , app:: DownloadError > {
45
48
match self . downloader . download_executable ( ) . await {
46
49
Ok ( ( ) ) => {
47
50
self . queue . queue_main ( move |self_| {
@@ -63,7 +66,7 @@ impl<Delegate: AppDelegate, Downloader: AppDownloader + Send + 'static> AppDownl
63
66
}
64
67
}
65
68
66
- async fn verify ( & mut self ) -> Result < ( ) , crate :: app:: DownloadError > {
69
+ async fn verify ( & mut self ) -> Result < ( ) , app:: DownloadError > {
67
70
match self . downloader . verify ( ) . await {
68
71
Ok ( ( ) ) => {
69
72
self . queue . queue_main ( move |self_| {
0 commit comments