Fixed some clippy warnings in components (#32107)

* Fixed some clippy warnings in components

* Updated handling of NaN values in comparison

* Updated formatting using ./mach fmt
This commit is contained in:
komuhangi 2024-04-19 11:48:01 +03:00 committed by GitHub
parent f70413baba
commit 007a72fe4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 20 additions and 29 deletions

View file

@ -1043,7 +1043,7 @@ impl FormControl for HTMLElement {
.set_form_owner(form);
}
fn to_element<'a>(&'a self) -> &'a Element {
fn to_element(&self) -> &Element {
debug_assert!(self.is_form_associated_custom_element());
self.as_element()
}