mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
script: Clean-up IpcSend .sender().send() pattern (#38919)
The IpcSend trait defines a `send()` method, so doing .sender().send() seems like it just adds a useless clone of the sender, when we could just `send()` directly. This only cleans up the direct usages of this pattern, there are more instances, where a helper method is defined, which returns the IpcSender, and the only usages also just directly call send. Testing: No functional changes Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
ddf5f1eb2f
commit
b9dc228e51
5 changed files with 1 additions and 11 deletions
|
@ -105,7 +105,6 @@ impl IDBTransaction {
|
|||
|
||||
global
|
||||
.resource_threads()
|
||||
.sender()
|
||||
.send(IndexedDBThreadMsg::Sync(SyncOperation::RegisterNewTxn(
|
||||
sender,
|
||||
global.origin().immutable().clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue