diff options
author | Arthur Skobara <skobara.arthur@gmail.com> | 2015-12-12 22:31:19 +0600 |
---|---|---|
committer | Arthur Skobara <skobara.arthur@gmail.com> | 2015-12-12 22:31:19 +0600 |
commit | 8acb21a59460d3ba91cd04439b2087127ad0ffe7 (patch) | |
tree | f059895fe839da5d75492d4606942edce7dfe652 /components/script/dom/storage.rs | |
parent | f4783a0ec30c74f93c161372de806309900172ca (diff) | |
download | servo-8acb21a59460d3ba91cd04439b2087127ad0ffe7.tar.gz servo-8acb21a59460d3ba91cd04439b2087127ad0ffe7.zip |
Remove from Trusted::new an unnecessary argument
Diffstat (limited to 'components/script/dom/storage.rs')
-rw-r--r-- | components/script/dom/storage.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/storage.rs b/components/script/dom/storage.rs index 8ebf7f4d169..e29c5093f6c 100644 --- a/components/script/dom/storage.rs +++ b/components/script/dom/storage.rs @@ -156,8 +156,7 @@ impl Storage { let global_ref = global_root.r(); let main_script_chan = global_ref.as_window().main_thread_script_chan(); let script_chan = global_ref.dom_manipulation_task_source(); - let trusted_storage = Trusted::new(global_ref.get_cx(), self, - script_chan.clone()); + let trusted_storage = Trusted::new(self, script_chan); main_script_chan.send(MainThreadScriptMsg::MainThreadRunnableMsg( box StorageEventRunnable::new(trusted_storage, key, old_value, new_value))).unwrap(); } |