diff options
Diffstat (limited to 'components/script/dom/gamepad.rs')
-rw-r--r-- | components/script/dom/gamepad.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/gamepad.rs b/components/script/dom/gamepad.rs index 68e7a1de2e5..47201b88e13 100644 --- a/components/script/dom/gamepad.rs +++ b/components/script/dom/gamepad.rs @@ -67,18 +67,18 @@ impl Gamepad { ) -> Gamepad { Self { reflector_: Reflector::new(), - gamepad_id: gamepad_id, - id: id, + gamepad_id, + id, index: Cell::new(index), connected: Cell::new(connected), timestamp: Cell::new(timestamp), - mapping_type: mapping_type, + mapping_type, axes: HeapBufferSource::default(), buttons: Dom::from_ref(buttons), pose: pose.map(Dom::from_ref), - hand: hand, - axis_bounds: axis_bounds, - button_bounds: button_bounds, + hand, + axis_bounds, + button_bounds, exposed: Cell::new(false), } } |