Skip to content

Commit d73aa05

Browse files
committed
fix(odbc): simplify thread spawning in ConnectionWorker
1 parent c61fcb8 commit d73aa05

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sqlx-core/src/odbc/connection/worker.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ impl ConnectionWorker {
5959

6060
thread::Builder::new()
6161
.name("sqlx-odbc-conn".into())
62-
.spawn(move || {
63-
worker_thread_main(options, establish_tx);
64-
})?;
62+
.spawn(move || worker_thread_main(options, establish_tx))?;
6563

6664
establish_rx.await.map_err(|_| Error::WorkerCrashed)?
6765
}

0 commit comments

Comments
 (0)