m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-08 05:03:49 -05:00

fix: clippy lints

This commit is contained in:
Sergio
2025-05-02 18:23:38 +03:00
parent 5ea924c5ad
commit 3ac990abce
2 changed files with 2 additions and 8 deletions

View File

@@ -130,13 +130,7 @@ pub async fn get_updates(
.map(|image| &image.parts.registry)
.unique()
.filter(|&registry| match ctx.config.registries.get(registry) {
Some(config) => {
if config.ignore {
false
} else {
true
}
}
Some(config) => !config.ignore,
None => true,
})
.collect::<Vec<&String>>();

View File

@@ -219,7 +219,7 @@ pub async fn get_extra_tags(
ctx: &Context,
client: &Client,
) -> Result<(Vec<Version>, Option<String>), String> {
let response = client.get(url, &headers, false).await;
let response = client.get(url, headers, false).await;
match response {
Ok(res) => {