Add Fetcher::target to trait Fetcher

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-07 16:35:47 +10:00
parent 603955b848
commit 3f2e03893a
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
3 changed files with 14 additions and 1 deletions

View file

@ -66,6 +66,10 @@ impl super::Fetcher for GhCrateMeta {
fn is_third_party(&self) -> bool {
false
}
fn target(&self) -> &str {
&self.data.target
}
}
/// Template for constructing download paths