mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: remove unneeded return statements (#31923)
This commit is contained in:
parent
7349ce5b6a
commit
0728378424
10 changed files with 15 additions and 19 deletions
|
@ -286,11 +286,7 @@ impl Gamepad {
|
|||
/// <https://www.w3.org/TR/gamepad/#dfn-gamepad-user-gesture>
|
||||
pub fn contains_user_gesture(update_type: GamepadUpdateType) -> bool {
|
||||
match update_type {
|
||||
GamepadUpdateType::Axis(_, value) => {
|
||||
return value.abs() > AXIS_TILT_THRESHOLD;
|
||||
},
|
||||
GamepadUpdateType::Button(_, value) => {
|
||||
return value > BUTTON_PRESS_THRESHOLD;
|
||||
},
|
||||
};
|
||||
GamepadUpdateType::Axis(_, value) => value.abs() > AXIS_TILT_THRESHOLD,
|
||||
GamepadUpdateType::Button(_, value) => value > BUTTON_PRESS_THRESHOLD,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue