mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-25 02:21:37 +08:00
Rustfmt
This commit is contained in:
parent
5e79f84b37
commit
36f2459393
@ -142,7 +142,9 @@ mod test {
|
|||||||
let db = Connection::open_in_memory()?;
|
let db = Connection::open_in_memory()?;
|
||||||
db.execute_batch("CREATE TABLE x AS SELECT 'data'")?;
|
db.execute_batch("CREATE TABLE x AS SELECT 'data'")?;
|
||||||
let data = db.serialize(DatabaseName::Main)?;
|
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);
|
assert!(data.sz > 0);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
@ -152,7 +154,9 @@ mod test {
|
|||||||
let src = Connection::open_in_memory()?;
|
let src = Connection::open_in_memory()?;
|
||||||
src.execute_batch("CREATE TABLE x AS SELECT 'data'")?;
|
src.execute_batch("CREATE TABLE x AS SELECT 'data'")?;
|
||||||
let data = src.serialize(DatabaseName::Main)?;
|
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()?;
|
let mut dst = Connection::open_in_memory()?;
|
||||||
dst.deserialize(DatabaseName::Main, data, false)?;
|
dst.deserialize(DatabaseName::Main, data, false)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user