fix clippy

Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
This commit is contained in:
gterzian 2025-06-05 22:00:29 +07:00
parent b251c12bfc
commit 002a7f4572
No known key found for this signature in database
GPG key ID: E290318CF2FC84D3
2 changed files with 5 additions and 5 deletions

View file

@ -150,7 +150,7 @@ impl AbortSignal {
) { ) {
// For each algorithm of signals abort algorithms: run algorithm. // For each algorithm of signals abort algorithms: run algorithm.
for algo in self.abort_algorithms.borrow().iter() { for algo in self.abort_algorithms.borrow().iter() {
self.run_abort_algorithm(cx, global, &algo, realm, can_gc); self.run_abort_algorithm(cx, global, algo, realm, can_gc);
} }
// Empty signals abort algorithms. // Empty signals abort algorithms.

View file

@ -703,7 +703,7 @@ impl PipeTo {
dest.abort(cx, global, error.handle(), can_gc) dest.abort(cx, global, error.handle(), can_gc)
} else { } else {
// Otherwise, return a promise resolved with undefined. // Otherwise, return a promise resolved with undefined.
Promise::new_resolved(global, cx, &(), can_gc) Promise::new_resolved(global, cx, (), can_gc)
}; };
actions.push(promise); actions.push(promise);
} }
@ -718,7 +718,7 @@ impl PipeTo {
source.cancel(cx, global, error.handle(), can_gc) source.cancel(cx, global, error.handle(), can_gc)
} else { } else {
// Otherwise, return a promise resolved with undefined. // Otherwise, return a promise resolved with undefined.
Promise::new_resolved(global, cx, &(), can_gc) Promise::new_resolved(global, cx, (), can_gc)
}; };
actions.push(promise); actions.push(promise);
} }
@ -2088,7 +2088,7 @@ impl ReadableStreamMethods<crate::DomTypeHolder> for ReadableStream {
} }
// Let signal be options["signal"] if it exists, or undefined otherwise. // Let signal be options["signal"] if it exists, or undefined otherwise.
let signal = options.signal.as_ref().map(|signal| &**signal); let signal = options.signal.as_deref();
// Return ! ReadableStreamPipeTo. // Return ! ReadableStreamPipeTo.
self.pipe_to( self.pipe_to(
@ -2126,7 +2126,7 @@ impl ReadableStreamMethods<crate::DomTypeHolder> for ReadableStream {
} }
// Let signal be options["signal"] if it exists, or undefined otherwise. // Let signal be options["signal"] if it exists, or undefined otherwise.
let signal = options.signal.as_ref().map(|signal| &**signal); let signal = options.signal.as_deref();
// Let promise be ! ReadableStreamPipeTo(this, transform["writable"], // Let promise be ! ReadableStreamPipeTo(this, transform["writable"],
// options["preventClose"], options["preventAbort"], options["preventCancel"], signal). // options["preventClose"], options["preventAbort"], options["preventCancel"], signal).