Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Sep 26, 2023
1 parent 4cfd774 commit b260aef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/index/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub async fn index(index_url: Url) -> Result<(), miette::Error> {
&[normalize_index_url(index_url)],
cache_dir.clone(),
)
.into_diagnostic()?;
.into_diagnostic()?;

let mut names = package_db.get_package_names().await?;
names.shuffle(&mut rand::thread_rng());
Expand All @@ -65,7 +65,7 @@ pub async fn index(index_url: Url) -> Result<(), miette::Error> {
"CREATE UNIQUE INDEX IF NOT EXISTS idx_name_version ON `metadata` (`name`, `version`)",
(),
)
.into_diagnostic()?;
.into_diagnostic()?;

let mut insert_stmt = conn.prepare("INSERT INTO metadata (name, version, requires_dist, requires_python, extras) VALUES (?, ?, ?, ?, ?)").into_diagnostic()?;
let mut request = conn
Expand Down Expand Up @@ -180,7 +180,7 @@ pub fn query_extras() -> Result<(), miette::Error> {
let requires_dist = serde_json::from_str::<Vec<PackageRequirement>>(
requirement.into_diagnostic()?.as_str(),
)
.into_diagnostic()?;
.into_diagnostic()?;
total += requires_dist.len();
for req in requires_dist {
if !req.extras.is_empty() {
Expand Down

0 comments on commit b260aef

Please sign in to comment.