Ret CompactString in Fetcher::source_name

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-08-02 22:42:05 +10:00
parent f72eafb049
commit 60d17c7e56
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
3 changed files with 11 additions and 8 deletions

View file

@ -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 {