mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
Rustfmt
This commit is contained in:
parent
49325296a9
commit
9c954b8cb5
11
src/hooks.rs
11
src/hooks.rs
@ -372,10 +372,13 @@ mod test {
|
|||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref CALLED: AtomicBool = AtomicBool::new(false);
|
static ref CALLED: AtomicBool = AtomicBool::new(false);
|
||||||
}
|
}
|
||||||
db.progress_handler(1, Some(|| {
|
db.progress_handler(
|
||||||
CALLED.store(true, Ordering::Relaxed);
|
1,
|
||||||
false
|
Some(|| {
|
||||||
}));
|
CALLED.store(true, Ordering::Relaxed);
|
||||||
|
false
|
||||||
|
}),
|
||||||
|
);
|
||||||
db.execute_batch("BEGIN; CREATE TABLE foo (t TEXT); COMMIT;")
|
db.execute_batch("BEGIN; CREATE TABLE foo (t TEXT); COMMIT;")
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert!(CALLED.load(Ordering::Relaxed));
|
assert!(CALLED.load(Ordering::Relaxed));
|
||||||
|
Loading…
Reference in New Issue
Block a user