Skip to content

Commit 1b516b5

Browse files
authored
Remove dummy let assignments (#7100)
* controllers/krate/publish: Remove dummy let With current Rust versions this dummy assignment is apparently no longer needed. * tests/record: Replace dummy let with `move` With current Rust versions this dummy assignment is apparently no longer needed and we can use the `move` keyword instead.
1 parent c3e4e53 commit 1b516b5

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/controllers/krate/publish.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ pub async fn publish(app: AppState, req: BytesRequest) -> AppResult<Json<GoodCra
112112
// Create a transaction on the database, if there are no errors,
113113
// commit the transactions to record a new or updated crate.
114114
conn.transaction(|conn| {
115-
let _ = &new_crate;
116115
let name = new_crate.name;
117116
let vers = &*new_crate.vers;
118117
let links = new_crate.links;

src/tests/record.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,7 @@ fn replay_http(
381381
panic!("didn't find header {:?}", (name, value));
382382
}
383383

384-
async {
385-
let _ = &exchange;
386-
384+
async move {
387385
let plain_text = is_plain_text(req.headers());
388386
let body = to_bytes(req.into_body()).await.unwrap();
389387
if plain_text {

0 commit comments

Comments
 (0)