mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
fix clippy
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
This commit is contained in:
parent
b251c12bfc
commit
002a7f4572
2 changed files with 5 additions and 5 deletions
|
@ -150,7 +150,7 @@ impl AbortSignal {
|
|||
) {
|
||||
// For each algorithm of signal’s abort algorithms: run algorithm.
|
||||
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 signal’s abort algorithms.
|
||||
|
|
|
@ -703,7 +703,7 @@ impl PipeTo {
|
|||
dest.abort(cx, global, error.handle(), can_gc)
|
||||
} else {
|
||||
// Otherwise, return a promise resolved with undefined.
|
||||
Promise::new_resolved(global, cx, &(), can_gc)
|
||||
Promise::new_resolved(global, cx, (), can_gc)
|
||||
};
|
||||
actions.push(promise);
|
||||
}
|
||||
|
@ -718,7 +718,7 @@ impl PipeTo {
|
|||
source.cancel(cx, global, error.handle(), can_gc)
|
||||
} else {
|
||||
// Otherwise, return a promise resolved with undefined.
|
||||
Promise::new_resolved(global, cx, &(), can_gc)
|
||||
Promise::new_resolved(global, cx, (), can_gc)
|
||||
};
|
||||
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 = options.signal.as_ref().map(|signal| &**signal);
|
||||
let signal = options.signal.as_deref();
|
||||
|
||||
// Return ! ReadableStreamPipeTo.
|
||||
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 = options.signal.as_ref().map(|signal| &**signal);
|
||||
let signal = options.signal.as_deref();
|
||||
|
||||
// Let promise be ! ReadableStreamPipeTo(this, transform["writable"],
|
||||
// options["preventClose"], options["preventAbort"], options["preventCancel"], signal).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue