mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-13 15:30:03 +00:00
Ret CompactString
in Fetcher::source_name
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
f72eafb049
commit
60d17c7e56
3 changed files with 11 additions and 8 deletions
|
@ -1,6 +1,7 @@
|
|||
use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
|
||||
use compact_str::CompactString;
|
||||
use log::{debug, info};
|
||||
use reqwest::Client;
|
||||
use reqwest::Method;
|
||||
|
@ -49,8 +50,8 @@ impl super::Fetcher for QuickInstall {
|
|||
PkgFmt::Tgz
|
||||
}
|
||||
|
||||
fn source_name(&self) -> String {
|
||||
String::from("QuickInstall")
|
||||
fn source_name(&self) -> CompactString {
|
||||
CompactString::from("QuickInstall")
|
||||
}
|
||||
|
||||
fn is_third_party(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue