mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-04-08 12:50:55 +01:00
chore: fix clippy lints
This commit is contained in:
parent
0b5c233734
commit
7ad4c6f5c6
1 changed files with 1 additions and 4 deletions
|
@ -329,10 +329,7 @@ pub async fn get_index(project: &Project, index: Option<&str>) -> anyhow::Result
|
||||||
};
|
};
|
||||||
|
|
||||||
let index_url = match index {
|
let index_url = match index {
|
||||||
Some(index) => match index.try_into() {
|
Some(index) => index.try_into().ok(),
|
||||||
Ok(url) => Some(url),
|
|
||||||
Err(_) => None,
|
|
||||||
},
|
|
||||||
None => match manifest {
|
None => match manifest {
|
||||||
Some(_) => None,
|
Some(_) => None,
|
||||||
None => Some(read_config().await?.default_index),
|
None => Some(read_config().await?.default_index),
|
||||||
|
|
Loading…
Add table
Reference in a new issue