From 36f24593931bbb52ee4f2c1826c12aa744a79093 Mon Sep 17 00:00:00 2001 From: gwenn Date: Sat, 26 Aug 2023 10:58:58 +0000 Subject: [PATCH] Rustfmt --- src/serialize.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/serialize.rs b/src/serialize.rs index e482af4..a20a942 100644 --- a/src/serialize.rs +++ b/src/serialize.rs @@ -142,7 +142,9 @@ mod test { let db = Connection::open_in_memory()?; db.execute_batch("CREATE TABLE x AS SELECT 'data'")?; let data = db.serialize(DatabaseName::Main)?; - let Data::Owned(data) = data else { panic!("expected OwnedData")}; + let Data::Owned(data) = data else { + panic!("expected OwnedData") + }; assert!(data.sz > 0); Ok(()) } @@ -152,7 +154,9 @@ mod test { let src = Connection::open_in_memory()?; src.execute_batch("CREATE TABLE x AS SELECT 'data'")?; let data = src.serialize(DatabaseName::Main)?; - let Data::Owned(data) = data else { panic!("expected OwnedData")}; + let Data::Owned(data) = data else { + panic!("expected OwnedData") + }; let mut dst = Connection::open_in_memory()?; dst.deserialize(DatabaseName::Main, data, false)?;