mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
clippy: Fix needless borrow warnings (#31813)
This commit is contained in:
parent
694e86ecff
commit
3e63f8d6ee
42 changed files with 151 additions and 157 deletions
|
@ -57,7 +57,7 @@ impl GamepadEvent {
|
|||
gamepad: &Gamepad,
|
||||
) -> DomRoot<GamepadEvent> {
|
||||
let ev = reflect_dom_object_with_proto(
|
||||
Box::new(GamepadEvent::new_inherited(&gamepad)),
|
||||
Box::new(GamepadEvent::new_inherited(gamepad)),
|
||||
global,
|
||||
proto,
|
||||
);
|
||||
|
@ -78,7 +78,7 @@ impl GamepadEvent {
|
|||
GamepadEventType::Disconnected => "gamepaddisconnected",
|
||||
};
|
||||
|
||||
GamepadEvent::new(&global, name.into(), false, false, &gamepad)
|
||||
GamepadEvent::new(global, name.into(), false, false, gamepad)
|
||||
}
|
||||
|
||||
// https://w3c.github.io/gamepad/#gamepadevent-interface
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue