mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
clippy: Fix explicit_auto_deref
warnings in components/script
(#32113)
* clippy: Fix explicit_auto_deref warnings * refactor: Change basic comments to rustdoc comments
This commit is contained in:
parent
5ac756fd09
commit
21ea6d21f0
3 changed files with 62 additions and 62 deletions
|
@ -3023,7 +3023,7 @@ impl GlobalScope {
|
|||
unreachable!();
|
||||
}
|
||||
|
||||
// https://w3c.github.io/performance-timeline/#supportedentrytypes-attribute
|
||||
/// <https://w3c.github.io/performance-timeline/#supportedentrytypes-attribute>
|
||||
pub fn supported_performance_entry_types(&self, cx: SafeJSContext) -> JSVal {
|
||||
if let Some(types) = &*self.frozen_supported_performance_entry_types.borrow() {
|
||||
return types.get();
|
||||
|
@ -3152,7 +3152,7 @@ impl GlobalScope {
|
|||
let navigator = window.Navigator();
|
||||
let selected_index = navigator.select_gamepad_index();
|
||||
let gamepad = Gamepad::new(&global, selected_index, name, axis_bounds, button_bounds);
|
||||
navigator.set_gamepad(selected_index as usize, &*gamepad);
|
||||
navigator.set_gamepad(selected_index as usize, &gamepad);
|
||||
}
|
||||
}),
|
||||
&self.task_canceller(TaskSourceName::Gamepad)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue