Skip to content

Commit c1bef40

Browse files
committed
publish: Use links field from embedded Cargo.toml file
1 parent 7bc69e7 commit c1bef40

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/controllers/krate/publish.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ pub async fn publish(app: AppState, req: BytesRequest) -> AppResult<Json<GoodCra
162162
conn.transaction(|conn| {
163163
let name = metadata.name;
164164
let vers = &*metadata.vers;
165-
let links = metadata.links;
166165
let features = metadata
167166
.features
168167
.into_iter()
@@ -238,7 +237,7 @@ pub async fn publish(app: AppState, req: BytesRequest) -> AppResult<Json<GoodCra
238237
content_length as i32,
239238
user.id,
240239
hex_cksum,
241-
links,
240+
package.links,
242241
rust_version,
243242
)?
244243
.save(conn, &verified_email_address)?;

0 commit comments

Comments
 (0)