From f8b1a0aeabf6336b39a3b3b9a89a4ded276be3d1 Mon Sep 17 00:00:00 2001 From: mxhagen Date: Wed, 11 Dec 2024 21:50:56 +0100 Subject: [PATCH] autoformatting --- src/test/macros.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/test/macros.rs b/src/test/macros.rs index 4883c43..fbaa007 100644 --- a/src/test/macros.rs +++ b/src/test/macros.rs @@ -84,11 +84,14 @@ fn test_table_derive_macro() { let err = Person::get_by_id(&conn, larry_id) .expect_err("Querying a deleted row should Err(QueryReturnedNoRows)"); assert_eq!( - err, rusqlite::Error::QueryReturnedNoRows, + err, + rusqlite::Error::QueryReturnedNoRows, "Received row that should have been deleted" ); - let id = larry.update_or_insert(&conn).expect("Upsertion (insert) should work"); + let id = larry + .update_or_insert(&conn) + .expect("Upsertion (insert) should work"); let larry_id = larry .id .expect("After (mutable) upsertion, id should not be None"); @@ -102,7 +105,9 @@ fn test_table_derive_macro() { ); larry.age += 1; - let id = larry.update_or_insert(&conn).expect("Upsertion (update) should work"); + let id = larry + .update_or_insert(&conn) + .expect("Upsertion (update) should work"); let larry_id = larry .id .expect("After (mutable) upsertion, id should not be None"); @@ -139,7 +144,6 @@ fn test_table_derive_macro() { .expect("Explicit Sqlite statement (not a library test) failed"); assert!(!exists, "Deleted table should not exist anymore but does"); - /// Another example struct to assure this works more than once #[derive(Table, Default)] #[allow(unused)]