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) .map(|image| &image.parts.registry)
.unique() .unique()
.filter(|&registry| match ctx.config.registries.get(registry) { .filter(|&registry| match ctx.config.registries.get(registry) {
Some(config) => { Some(config) => !config.ignore,
if config.ignore {
false
} else {
true
}
}
None => true, None => true,
}) })
.collect::<Vec<&String>>(); .collect::<Vec<&String>>();

View File

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