Skip to content

Commit 8788535

Browse files
committed
fix missed conflicts
1 parent 7189966 commit 8788535

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/factory.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use crate::{
2-
database::OwnedDatabase,
32
transaction::{unsafe_jar, RunnableTransaction, TransactionResult},
43
utils::{non_transaction_request, str_slice_to_array},
5-
Database, ObjectStore, Transaction,
4+
Database, ObjectStore, OwnedDatabase, Transaction,
65
};
76
use futures_util::{pin_mut, FutureExt};
87
use std::{

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mod transaction;
1818
mod utils;
1919

2020
pub use cursor::{Cursor, CursorBuilder, CursorDirection};
21-
pub use database::Database;
21+
pub use database::{Database, OwnedDatabase};
2222
pub use error::{Error, Result};
2323
pub use factory::{Factory, ObjectStoreBuilder, VersionChangeEvent};
2424
pub use index::Index;

tests/common/mod.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
use std::convert::Infallible;
2+
13
use indexed_db::{Error, Factory};
24
use wasm_bindgen_test::wasm_bindgen_test;
35
use web_sys::{
@@ -471,20 +473,19 @@ async fn typed_array_keys() {
471473

472474
#[wasm_bindgen_test]
473475
async fn borrowing_transaction() {
474-
let factory = Factory::<()>::get().unwrap();
476+
let factory = Factory::get().unwrap();
475477

476478
let db = factory
477-
.open("foo42", 1, async move |evt| {
478-
let db = evt.database();
479-
db.build_object_store("data").create()?;
479+
.open::<Infallible>("foo42", 1, async move |evt| {
480+
evt.build_object_store("data").create()?;
480481
Ok(())
481482
})
482483
.await
483484
.unwrap();
484485
let data_from_outside = String::from("superlargedata");
485486
db.transaction(&["data"])
486487
.rw()
487-
.run(async |t| {
488+
.run::<_, Infallible>(async |t| {
488489
let data = t.object_store("data")?;
489490
data.add_kv(
490491
&JsString::from("data"),
@@ -496,7 +497,7 @@ async fn borrowing_transaction() {
496497
.await
497498
.unwrap();
498499
db.transaction(&["data"])
499-
.run(async |t| {
500+
.run::<_, Infallible>(async |t| {
500501
let data = t.object_store("data")?;
501502
assert_eq!(
502503
data.get(&JsString::from("data"))

0 commit comments

Comments
 (0)