Skip to content

Commit 10980a0

Browse files
committed
Update to diesel v2
The changes are trivial: * all methods now require a &mut reference to a Connection instance. Connections could not be shared between threads before, so all the references we had already were exclusive anyway * begin_transaction() now calls the closure with one argument -- a &mut reference to the Connection instance
1 parent 3067553 commit 10980a0

File tree

3 files changed

+78
-66
lines changed

3 files changed

+78
-66
lines changed

Cargo.lock

Lines changed: 32 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ debug = true
2020

2121
[dependencies]
2222
chrono = { version = "0.4.19", features = ["serde"] }
23-
diesel = { version = "1.4.5", features = ["chrono", "postgres", "r2d2"] }
23+
diesel = { version = "2.1.0", features = ["chrono", "postgres", "r2d2"] }
2424
jsonwebtoken = "7.2.0"
2525
rand = "0.7.3"
2626
reqwest = { version = "0.11.2", features = ["json"] }

0 commit comments

Comments
 (0)