Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/controllers/krate/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ pub async fn publish(app: AppState, req: BytesRequest) -> AppResult<Json<GoodCra
// Create a transaction on the database, if there are no errors,
// commit the transactions to record a new or updated crate.
conn.transaction(|conn| {
let _ = &new_crate;
let name = new_crate.name;
let vers = &*new_crate.vers;
let links = new_crate.links;
Expand Down
4 changes: 1 addition & 3 deletions src/tests/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,7 @@ fn replay_http(
panic!("didn't find header {:?}", (name, value));
}

async {
let _ = &exchange;

async move {
let plain_text = is_plain_text(req.headers());
let body = to_bytes(req.into_body()).await.unwrap();
if plain_text {
Expand Down