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),