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:
Oluwatobi Sofela 2024-04-19 03:47:40 +01:00 committed by GitHub
parent 5ac756fd09
commit 21ea6d21f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 62 additions and 62 deletions

View file

@ -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)