Skip to content

Commit 16dccde

Browse files
committed
chore: cargo fmt
1 parent f927c75 commit 16dccde

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

packages/cipherstash-proxy-integration/src/eql_regression.rs

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ mod tests {
105105
let db_client = connect_with_tls(db_port).await;
106106

107107
// Insert the raw ciphertext directly, casting from text to eql_v2_encrypted
108-
let sql = format!(
109-
"INSERT INTO encrypted (id, {column}) VALUES ($1, $2::eql_v2_encrypted)"
110-
);
108+
let sql = format!("INSERT INTO encrypted (id, {column}) VALUES ($1, $2::eql_v2_encrypted)");
111109
db_client
112110
.execute(&sql, &[&id, &ciphertext])
113111
.await
@@ -147,8 +145,7 @@ mod tests {
147145
let path = fixtures_path();
148146
fs::create_dir_all(&path).expect("Failed to create fixtures directory");
149147

150-
let content =
151-
serde_json::to_string_pretty(fixtures).expect("Failed to serialize fixtures");
148+
let content = serde_json::to_string_pretty(fixtures).expect("Failed to serialize fixtures");
152149
fs::write(path.join("fixtures.json"), content).expect("Failed to write fixtures file");
153150
}
154151

@@ -497,8 +494,7 @@ mod tests {
497494
let rows = proxy_client.query(sql, &[&id]).await.unwrap();
498495
let decrypted: Value = rows[0].get(0);
499496
assert_eq!(
500-
decrypted,
501-
fixture.plaintext["string"],
497+
decrypted, fixture.plaintext["string"],
502498
"Failed to access 'string' field on legacy jsonb"
503499
);
504500

@@ -507,8 +503,7 @@ mod tests {
507503
let rows = proxy_client.query(sql, &[&id]).await.unwrap();
508504
let decrypted: Value = rows[0].get(0);
509505
assert_eq!(
510-
decrypted,
511-
fixture.plaintext["number"],
506+
decrypted, fixture.plaintext["number"],
512507
"Failed to access 'number' field on legacy jsonb"
513508
);
514509

@@ -517,8 +512,7 @@ mod tests {
517512
let rows = proxy_client.query(sql, &[&id]).await.unwrap();
518513
let decrypted: Value = rows[0].get(0);
519514
assert_eq!(
520-
decrypted,
521-
fixture.plaintext["nested"],
515+
decrypted, fixture.plaintext["nested"],
522516
"Failed to access 'nested' field on legacy jsonb"
523517
);
524518
}
@@ -550,8 +544,7 @@ mod tests {
550544
let rows = proxy_client.query(sql, &[&id]).await.unwrap();
551545
let decrypted: Value = rows[0].get(0);
552546
assert_eq!(
553-
decrypted,
554-
fixture.plaintext["array_number"],
547+
decrypted, fixture.plaintext["array_number"],
555548
"Failed to access 'array_number' field on legacy jsonb"
556549
);
557550
}

0 commit comments

Comments
 (0)