Skip to content

Commit 8dd8b1b

Browse files
committed
publish: Rename krate_id parameter to crate_id
This is no longer needed since the name clash with the SQL column has been resolved
1 parent 2c95313 commit 8dd8b1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controllers/krate/publish.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ pub fn add_dependencies(
453453
}
454454

455455
// Match only identical names to ensure the index always references the original crate name
456-
let Some(&krate_id) = crate_ids.get(&dep.name.0) else {
456+
let Some(&crate_id) = crate_ids.get(&dep.name.0) else {
457457
return Err(cargo_err(&format_args!("no known crate named `{}`", &*dep.name)));
458458
};
459459

@@ -468,7 +468,7 @@ pub fn add_dependencies(
468468

469469
Ok((
470470
dependencies::version_id.eq(version_id),
471-
dependencies::crate_id.eq(krate_id),
471+
dependencies::crate_id.eq(crate_id),
472472
dependencies::req.eq(dep.version_req.to_string()),
473473
dep.kind.map(|k| dependencies::kind.eq(k)),
474474
dependencies::optional.eq(dep.optional),

0 commit comments

Comments
 (0)