We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
download
1 parent d9f7432 commit 8ab727aCopy full SHA for 8ab727a
src/download/src/lib.rs
@@ -47,21 +47,6 @@ pub fn download(url: &Url,
47
Err("no working backends".into())
48
}
49
50
-pub fn download_to_path(url: &Url,
51
- path: &Path,
52
- callback: Option<&Fn(Event) -> Result<()>>)
53
- -> Result<()> {
54
- for &backend in BACKENDS {
55
- match download_to_path_with_backend(backend, url, path, callback) {
56
- Err(Error(ErrorKind::BackendUnavailable(_), _)) => (),
57
- Err(e) => return Err(e),
58
- Ok(()) => return Ok(()),
59
- }
60
61
-
62
- Err("no working backends".into())
63
-}
64
65
pub fn download_with_backend(backend: Backend,
66
url: &Url,
67
callback: &Fn(Event) -> Result<()>)
0 commit comments