mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove some redundant let bindings
This commit is contained in:
parent
2e1c9785dc
commit
861ddedaef
8 changed files with 24 additions and 64 deletions
|
@ -89,27 +89,19 @@ impl StorageEvent {
|
|||
|
||||
impl<'a> StorageEventMethods for &'a StorageEvent {
|
||||
fn GetKey(self) -> Option<DOMString> {
|
||||
// FIXME(https://github.com/rust-lang/rust/issues/23338)
|
||||
let key = self.key.borrow();
|
||||
key.clone()
|
||||
self.key.borrow().clone()
|
||||
}
|
||||
|
||||
fn GetOldValue(self) -> Option<DOMString> {
|
||||
// FIXME(https://github.com/rust-lang/rust/issues/23338)
|
||||
let oldValue = self.oldValue.borrow();
|
||||
oldValue.clone()
|
||||
self.oldValue.borrow().clone()
|
||||
}
|
||||
|
||||
fn GetNewValue(self) -> Option<DOMString> {
|
||||
// FIXME(https://github.com/rust-lang/rust/issues/23338)
|
||||
let newValue = self.newValue.borrow();
|
||||
newValue.clone()
|
||||
self.newValue.borrow().clone()
|
||||
}
|
||||
|
||||
fn Url(self) -> DOMString {
|
||||
// FIXME(https://github.com/rust-lang/rust/issues/23338)
|
||||
let url = self.url.borrow();
|
||||
url.clone()
|
||||
self.url.borrow().clone()
|
||||
}
|
||||
|
||||
fn GetStorageArea(self) -> Option<Root<Storage>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue