summaryrefslogtreecommitdiff
path: root/src/net/http_package.rs
diff options
context:
space:
mode:
authorNamilskyy <alive6863@gmail.com>2025-12-01 15:14:58 +0300
committerNamilskyy <alive6863@gmail.com>2025-12-01 15:14:58 +0300
commit84b5aa13a0e6e5c8c9884ae3f973e560e7d4c59b (patch)
tree5e87585744a8e9e8063ba5e755e17771e5a280d4 /src/net/http_package.rs
parent4262072d0d79449da6b94fb8863064c3fe7998d5 (diff)
Fixed test logic and formatted code
Diffstat (limited to 'src/net/http_package.rs')
-rw-r--r--src/net/http_package.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/net/http_package.rs b/src/net/http_package.rs
index 92b5ffc..4b2aefa 100644
--- a/src/net/http_package.rs
+++ b/src/net/http_package.rs
@@ -47,12 +47,14 @@ impl HTTPPackage {
let index_url = repo_url_opt.as_deref().map_or_else(
|| {
- log::warn!("Repository URL is None, please specify it in /etc/mesk/mesk.toml and restart.");
- String::new()
+ log::warn!(
+ "Repository URL is None, please specify it in /etc/mesk/mesk.toml and restart."
+ );
+ String::new()
},
- |repo_url_str| {
+ |repo_url_str| {
if repo_url_str.ends_with(".tar.gz") {
- repo_url_str.to_string()
+ repo_url_str.to_string()
} else {
format!("{}/INDEX.tar.gz", repo_url_str.trim_end_matches('/'))
}