From 7ad4c6f5c6fc5ffe67b80b5d9c60cb99719ebb5e Mon Sep 17 00:00:00 2001 From: daimond113 Date: Mon, 3 Feb 2025 15:52:24 +0100 Subject: [PATCH] chore: fix clippy lints --- src/cli/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cli/mod.rs b/src/cli/mod.rs index e930e2a..8eb238b 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -329,10 +329,7 @@ pub async fn get_index(project: &Project, index: Option<&str>) -> anyhow::Result }; let index_url = match index { - Some(index) => match index.try_into() { - Ok(url) => Some(url), - Err(_) => None, - }, + Some(index) => index.try_into().ok(), None => match manifest { Some(_) => None, None => Some(read_config().await?.default_index),