Skip to content

Commit c3b84fc

Browse files
committed
Rename from EventResult to DownloadCallback
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent 2890305 commit c3b84fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

download/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ fn download_with_backend(
4747
}
4848
}
4949

50-
type EventResult<'a> = &'a dyn Fn(Event<'_>) -> Result<()>;
50+
type DownloadCallback<'a> = &'a dyn Fn(Event<'_>) -> Result<()>;
5151
pub fn download_to_path_with_backend(
5252
backend: Backend,
5353
url: &Url,
5454
path: &Path,
5555
resume_from_partial: bool,
56-
callback: Option<EventResult<'_>>,
56+
callback: Option<DownloadCallback<'_>>,
5757
) -> Result<()> {
5858
use std::cell::RefCell;
5959
use std::fs::remove_file;

0 commit comments

Comments
 (0)