Skip to content

Commit 793c89e

Browse files
committed
refactor: appease clippy lints
1 parent a264f6e commit 793c89e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/future/open_db/listener.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl OpenDbListener {
5959
listener: Closure::once(move |evt: web_sys::IdbVersionChangeEvent| {
6060
let res = Database::from_event(&evt).and_then(|db| {
6161
Transaction::from_raw_version_change_event(&db, &evt).and_then(|mut tx| {
62-
callback(VersionChangeEvent::new(evt), &tx).inspect(|_| {
62+
callback(VersionChangeEvent::new(evt), &tx).inspect(|()| {
6363
// If the callback succeeded, we want to ensure that
6464
// the transaction is committed when dropped and not
6565
// aborted.
@@ -181,7 +181,7 @@ const _: () = {
181181
let result = match Transaction::from_raw_version_change_event(&db, &evt) {
182182
Ok(mut transaction) => {
183183
match callback(VersionChangeEvent::new(evt), &transaction).await {
184-
Ok(_) => {
184+
Ok(()) => {
185185
// If the callback succeeded, we want to ensure that
186186
// the transaction is committed when dropped and not
187187
// aborted.

src/key_path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub enum KeyPath<T = String> {
2222

2323
#[generic_bounds(key_path(T))]
2424
impl<T> KeyPath<T> {
25-
/// Convert the key path to a JsValue.
25+
/// Convert the key path to a `JsValue`.
2626
pub fn to_js(&self) -> JsValue {
2727
match self {
2828
Self::One(v) => JsValue::from_str(v.as_ref()),

0 commit comments

Comments
 (0)