Fix clippy warnings, update dependencies (4) (#118)

Signed-off-by: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
This commit is contained in:
Jan Alexander Steffens
2023-06-06 17:45:49 +02:00
committed by GitHub
parent 6a065de6fc
commit 9ee99cd547
7 changed files with 478 additions and 322 deletions

View File

@@ -7,14 +7,14 @@ edition = "2018"
[dependencies]
string_cache = "0.8.0"
serial_test = "0.9.0"
serial_test = "2.0.0"
openssl = "0.10.48"
postgres = "0.19.0"
postgres-openssl = "0.5.0"
rand = "0.8.0"
synapse_compress_state = { path = "../", features = ["no-progress-bars"] }
synapse_auto_compressor = { path = "../synapse_auto_compressor/" }
env_logger = "0.9.0"
env_logger = "0.10.0"
log = "0.4.14"
[dependencies.state-map]

View File

@@ -195,7 +195,7 @@ fn collapse_state_with_database(state_group: i64) -> StateMap<Atom> {
while let Some(sg) = next_group {
// get predecessor from state_group_edges
let mut pred = client.query_raw(query_pred, &[sg]).unwrap();
let mut pred = client.query_raw(query_pred, [sg]).unwrap();
// set next_group to predecessor
next_group = match pred.next().unwrap() {
@@ -209,7 +209,7 @@ fn collapse_state_with_database(state_group: i64) -> StateMap<Atom> {
}
drop(pred);
let mut rows = client.query_raw(query_deltas, &[sg]).unwrap();
let mut rows = client.query_raw(query_deltas, [sg]).unwrap();
while let Some(row) = rows.next().unwrap() {
// Copy the single delta from the predecessor stored in this row