Update doc of download_and_extract_with_filter

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-11 19:30:31 +10:00
parent b1b79921b2
commit d1033758a7
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -85,8 +85,6 @@ pub async fn download_and_extract<P: AsRef<Path>>(
///
/// * `filter` - If Some, then it will pass the path of the file to it
/// and only extract ones which filter returns `true`.
/// Note that this is a best-effort and it only works when `fmt`
/// is not `PkgFmt::Bin` or `PkgFmt::Zip`.
pub async fn download_and_extract_with_filter<
Filter: FnMut(&Path) -> bool + Send + 'static,
P: AsRef<Path>,