mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove some more unnecessary let bindings
This commit is contained in:
parent
2947d78e4e
commit
bc1eb97671
11 changed files with 29 additions and 84 deletions
|
@ -784,15 +784,11 @@ impl<'a> KeyboardEventMethods for &'a KeyboardEvent {
|
|||
}
|
||||
|
||||
fn Key(self) -> DOMString {
|
||||
// FIXME(https://github.com/rust-lang/rust/issues/23338)
|
||||
let key_string = self.key_string.borrow();
|
||||
key_string.clone()
|
||||
self.key_string.borrow().clone()
|
||||
}
|
||||
|
||||
fn Code(self) -> DOMString {
|
||||
// FIXME(https://github.com/rust-lang/rust/issues/23338)
|
||||
let code = self.code.borrow();
|
||||
code.clone()
|
||||
self.code.borrow().clone()
|
||||
}
|
||||
|
||||
fn Location(self) -> u32 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue