aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart-registry/src/packagist.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-05 17:29:12 +0900
committernsfisis <nsfisis@gmail.com>2026-05-05 17:29:12 +0900
commit49b0884701a84731652fc934d428932ff6029bd4 (patch)
tree7477029b8ed686b9b3b06d960cab2b54ba87b579 /crates/mozart-registry/src/packagist.rs
parent4623874d1c95414dcd5ae194d2561f2d98b40982 (diff)
downloadphp-mozart-49b0884701a84731652fc934d428932ff6029bd4.tar.gz
php-mozart-49b0884701a84731652fc934d428932ff6029bd4.tar.zst
php-mozart-49b0884701a84731652fc934d428932ff6029bd4.zip
chore: remove redundant comments
Diffstat (limited to 'crates/mozart-registry/src/packagist.rs')
-rw-r--r--crates/mozart-registry/src/packagist.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/crates/mozart-registry/src/packagist.rs b/crates/mozart-registry/src/packagist.rs
index 504aa34..6f9b24a 100644
--- a/crates/mozart-registry/src/packagist.rs
+++ b/crates/mozart-registry/src/packagist.rs
@@ -267,10 +267,6 @@ pub async fn fetch_package_versions(
parse_p2_response(&body, package_name)
}
-// ─────────────────────────────────────────────────────────────────────────────
-// Packagist search API
-// ─────────────────────────────────────────────────────────────────────────────
-
/// A single search result from the Packagist search API.
#[derive(Debug, Deserialize, Serialize, Clone)]
pub struct SearchResult {
@@ -371,10 +367,6 @@ pub async fn search_packages(
Ok((all_results, total))
}
-// ─────────────────────────────────────────────────────────────────────────────
-// Security Advisories API
-// ─────────────────────────────────────────────────────────────────────────────
-
/// A single security advisory from the Packagist API.
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct SecurityAdvisory {
@@ -557,8 +549,6 @@ mod tests {
assert_eq!(versions[1].version, "1.0.0");
}
- // ──────────── branch_aliases() tests ────────────
-
#[test]
fn test_branch_aliases_present() {
let json = r#"{
@@ -652,8 +642,6 @@ mod tests {
assert!(aliases.is_empty());
}
- // ──────────── __unset sentinel handling ────────────────────────────────
-
#[test]
fn parse_p2_response_unset_fields() {
// Packagist metadata minifier uses "__unset" to mark deleted fields.
@@ -705,8 +693,6 @@ mod tests {
assert!(versions[1].suggest.is_none());
}
- // ──────────── minified metadata expansion ──────────────────────────────
-
#[test]
fn parse_p2_response_minified_expand() {
// Mirrors the Composer MetadataMinifierTest: 3 versions where only
@@ -865,8 +851,6 @@ mod tests {
assert!(versions[1].replace.is_empty());
}
- // ──────────── SecurityAdvisory parsing tests ─────────────────────────────
-
#[test]
fn test_parse_security_advisories_response() {
let json = r#"{