diff --git a/libips/src/repository/rest_backend.rs b/libips/src/repository/rest_backend.rs index 0d38d03..fa9b1ff 100644 --- a/libips/src/repository/rest_backend.rs +++ b/libips/src/repository/rest_backend.rs @@ -263,12 +263,12 @@ impl ReadableRepository for RestBackend { fn list_packages( &self, publisher: Option<&str>, - pattern: Option<&str>, + _pattern: Option<&str>, ) -> Result> { // This is a stub implementation // In a real implementation, we would make a REST API call to list packages - let mut packages = Vec::new(); + let packages = Vec::new(); // Filter publishers if specified let publishers = if let Some(pub_name) = publisher { @@ -281,7 +281,7 @@ impl ReadableRepository for RestBackend { }; // For each publisher, list packages - for pub_name in publishers { + for _pub_name in publishers { // In a real implementation, we would make a REST API call to get package information // The API call would return a list of packages with their names, versions, and other metadata // We would then parse this information and create PackageInfo structs @@ -400,9 +400,9 @@ impl ReadableRepository for RestBackend { fn search( &self, - query: &str, - publisher: Option<&str>, - limit: Option, + _query: &str, + _publisher: Option<&str>, + _limit: Option, ) -> Result> { todo!() } diff --git a/libips/src/test_json_manifest.rs b/libips/src/test_json_manifest.rs index 4f1efcf..41cc2f0 100644 --- a/libips/src/test_json_manifest.rs +++ b/libips/src/test_json_manifest.rs @@ -54,7 +54,7 @@ mod tests { // Verify that the parsed manifest has the expected attributes assert_eq!(parsed_manifest.attributes.len(), 1); - assert_eq!(parsed_manifest.attributes[0].key, "name"); - assert_eq!(parsed_manifest.attributes[0].values[0], "pkg.fmri"); + assert_eq!(parsed_manifest.attributes[0].key, "pkg.fmri"); + assert_eq!(parsed_manifest.attributes[0].values[0], "pkg://test/example@1.0.0"); } } \ No newline at end of file