Skip to content

Commit 24df42c

Browse files
committed
cargo fmt
1 parent 2c8d6a3 commit 24df42c

File tree

6 files changed

+23
-14
lines changed

6 files changed

+23
-14
lines changed

examples/common/license.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use cryptonamo::{Encryptable, Decryptable, Searchable};
1+
use cryptonamo::{Decryptable, Encryptable, Searchable};
22

33
#[derive(Debug, Encryptable, Decryptable, Searchable)]
44
#[cryptonamo(partition_key = "email")]

examples/common/user.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use cryptonamo::{Encryptable, Decryptable, Searchable};
1+
use cryptonamo::{Decryptable, Encryptable, Searchable};
22

33
#[derive(Debug, Encryptable, Decryptable, Searchable)]
44
#[cryptonamo(partition_key = "email")]

examples/common/user_result_by_name.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use cryptonamo::{Encryptable, Decryptable, Searchable};
1+
use cryptonamo::{Decryptable, Encryptable, Searchable};
22

33
#[derive(Debug, Encryptable, Decryptable, Searchable)]
44
#[cryptonamo(partition_key = "name")]

src/encrypted_table/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ pub use self::{
66
};
77
use crate::{
88
crypto::*,
9-
traits::{
10-
Decryptable, ReadConversionError, Searchable,
11-
WriteConversionError,
12-
},
9+
traits::{Decryptable, ReadConversionError, Searchable, WriteConversionError},
1310
};
1411
use aws_sdk_dynamodb::{
1512
types::{AttributeValue, Delete, Put, TransactWriteItem},

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,10 @@ mod error;
403403
pub mod traits;
404404
pub use encrypted_table::{EncryptedTable, QueryBuilder};
405405
pub use error::Error;
406-
pub use traits::{Encryptable, Decryptable, Searchable};
406+
pub use traits::{Decryptable, Encryptable, Searchable};
407407

408408
#[doc(hidden)]
409-
pub use cryptonamo_derive::{Encryptable, Decryptable, Searchable};
409+
pub use cryptonamo_derive::{Decryptable, Encryptable, Searchable};
410410

411411
// Re-exports
412412
pub use cipherstash_client::encryption;

tests/query_tests.rs

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use cryptonamo::{Encryptable, Decryptable, Searchable, EncryptedTable};
1+
use cryptonamo::{Decryptable, Encryptable, EncryptedTable, Searchable};
22
use itertools::Itertools;
33
use serial_test::serial;
44
use std::future::Future;
@@ -74,7 +74,10 @@ async fn test_query_single_exact() {
7474
.await
7575
.expect("Failed to query");
7676

77-
assert_eq!(res, vec![User::new("dan@coderdan.co", "Dan Draper", "blue")]);
77+
assert_eq!(
78+
res,
79+
vec![User::new("dan@coderdan.co", "Dan Draper", "blue")]
80+
);
7881
})
7982
.await;
8083
}
@@ -116,7 +119,10 @@ async fn test_query_compound() {
116119
.await
117120
.expect("Failed to query");
118121

119-
assert_eq!(res, vec![User::new("dan@coderdan.co", "Dan Draper", "blue")]);
122+
assert_eq!(
123+
res,
124+
vec![User::new("dan@coderdan.co", "Dan Draper", "blue")]
125+
);
120126
})
121127
.await;
122128
}
@@ -126,7 +132,10 @@ async fn test_query_compound() {
126132
async fn test_get_by_partition_key() {
127133
run_test(|table| async move {
128134
let res: Option<User> = table.get("dan@coderdan.co").await.expect("Failed to send");
129-
assert_eq!(res, Some(User::new("dan@coderdan.co", "Dan Draper", "blue")));
135+
assert_eq!(
136+
res,
137+
Some(User::new("dan@coderdan.co", "Dan Draper", "blue"))
138+
);
130139
})
131140
.await;
132141
}
@@ -152,7 +161,10 @@ async fn test_delete() {
152161
.send()
153162
.await
154163
.expect("Failed to send");
155-
assert_eq!(res, vec![User::new("daniel@example.com", "Daniel Johnson", "green")]);
164+
assert_eq!(
165+
res,
166+
vec![User::new("daniel@example.com", "Daniel Johnson", "green")]
167+
);
156168

157169
let res = table
158170
.query::<User>()

0 commit comments

Comments
 (0)