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)
|
.map(|image| &image.parts.registry)
|
||||||
.unique()
|
.unique()
|
||||||
.filter(|®istry| match ctx.config.registries.get(registry) {
|
.filter(|®istry| 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>>();
|
||||||
|
|||||||
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user