Skip to content

Commit 22df44e

Browse files
authored
Merge pull request #223 from Virgiel/dependencies
Update dependencies and especially deadpool
2 parents 5098729 + cf32042 commit 22df44e

File tree

12 files changed

+602
-568
lines changed

12 files changed

+602
-568
lines changed

Cargo.lock

Lines changed: 588 additions & 555 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[workspace]
2+
resolver = "2"
23
members = [
34
"examples/*",
45
"test_integration",

benches/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cornucopia_sync = { path = "../crates/client_sync" }
1212
cornucopia_async = { path = "../crates/client_async" }
1313

1414
# benchmarking
15-
criterion = { version = "0.4.0", features = ["html_reports"] }
15+
criterion = { version = "0.5.1", features = ["html_reports"] }
1616

1717
# async
1818
tokio = { version = "1.24.2", features = ["full"] }

crates/client_async/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ async-trait = "0.1.63"
2828
tokio-postgres = "0.7.7"
2929

3030
# connection pooling
31-
deadpool-postgres = { version = "0.10.4", optional = true }
31+
deadpool-postgres = { version = "0.11.0", optional = true }

crates/client_core/src/array_iterator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl<'a, T: FromSql<'a>> FromSql<'a> for ArrayIterator<'a, T> {
5353
Ok(ArrayIterator {
5454
ty: member_type.clone(),
5555
values: array.values(),
56-
_type: PhantomData::default(),
56+
_type: PhantomData,
5757
})
5858
}
5959

crates/cornucopia/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ clap = { version = "4.1.1", features = ["derive"] }
3232
heck = "0.4.0"
3333

3434
# Order-preserving map to work around borrowing issues
35-
indexmap = "1.9.2"
35+
indexmap = "2.0.2"

crates/cornucopia/src/codegen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ fn gen_params_struct(w: &mut impl Write, params: &PreparedItem, ctx: &GenCtx) {
323323
.map(|p| p.param_ergo_ty(traits, ctx))
324324
.collect::<Vec<_>>();
325325
let fields_name = fields.iter().map(|p| &p.ident.rs);
326-
let traits_idx = (1..=traits.len()).into_iter().map(idx_char);
326+
let traits_idx = (1..=traits.len()).map(idx_char);
327327
code!(w =>
328328
#[derive($copy Debug)]
329329
pub struct $name<$lifetime $($traits_idx: $traits,)> {
@@ -507,7 +507,7 @@ fn gen_query_fn<W: Write>(w: &mut W, module: &PreparedModule, query: &PreparedQu
507507
.map(|idx| param_field[*idx].param_ergo_ty(traits, ctx))
508508
.collect();
509509
let params_name = order.iter().map(|idx| &param_field[*idx].ident.rs);
510-
let traits_idx = (1..=traits.len()).into_iter().map(idx_char);
510+
let traits_idx = (1..=traits.len()).map(idx_char);
511511
let lazy_impl = |w: &mut W| {
512512
if let Some((idx, index)) = row {
513513
let item = module.rows.get_index(*idx).unwrap().1;

crates/cornucopia/src/parser.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ impl Query {
224224
.iter()
225225
.enumerate()
226226
.rev()
227-
.filter_map(|(i, u)| (!bind_params[..i].contains(u)).then(|| u.clone()))
227+
.filter(|(i, u)| !bind_params[..*i].contains(u))
228+
.map(|(_, u)| u.clone())
228229
.rev()
229230
.collect();
230231

examples/auto_build/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ futures = "0.3.25"
1919
tokio-postgres = "0.7.7"
2020
postgres-types = "0.2.4"
2121
## Connection pooling
22-
deadpool-postgres = "0.10.4"
22+
deadpool-postgres = "0.11.0"
2323

2424
[build-dependencies]
2525
# Cornucopia library to automatically

examples/basic_async/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ futures = "0.3.25"
1717
tokio-postgres = "0.7.7"
1818
postgres-types = { version = "0.2.4", features = ["derive"] }
1919
## Connection pooling
20-
deadpool-postgres = "0.10.4"
20+
deadpool-postgres = "0.11.0"

0 commit comments

Comments
 (0)