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:
@@ -130,13 +130,7 @@ pub async fn get_updates(
|
||||
.map(|image| &image.parts.registry)
|
||||
.unique()
|
||||
.filter(|®istry| match ctx.config.registries.get(registry) {
|
||||
Some(config) => {
|
||||
if config.ignore {
|
||||
false
|
||||
} else {
|
||||
true
|
||||
}
|
||||
}
|
||||
Some(config) => !config.ignore,
|
||||
None => true,
|
||||
})
|
||||
.collect::<Vec<&String>>();
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user