Remove some redundant let bindings

This commit is contained in:
David Zbarsky 2015-07-04 13:12:49 -04:00
parent 2e1c9785dc
commit 861ddedaef
8 changed files with 24 additions and 64 deletions

View file

@ -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>> {