mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-05 03:30:03 +00:00
Update doc of download_and_extract_with_filter
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
b1b79921b2
commit
d1033758a7
1 changed files with 0 additions and 2 deletions
|
@ -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
|
/// * `filter` - If Some, then it will pass the path of the file to it
|
||||||
/// and only extract ones which filter returns `true`.
|
/// 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<
|
pub async fn download_and_extract_with_filter<
|
||||||
Filter: FnMut(&Path) -> bool + Send + 'static,
|
Filter: FnMut(&Path) -> bool + Send + 'static,
|
||||||
P: AsRef<Path>,
|
P: AsRef<Path>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue