diff options
author | Rosemary Ajayi <okhuomonajayi54@gmail.com> | 2024-03-27 12:32:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 12:32:04 +0000 |
commit | bb7778774d4bdc6a0f787331e22e36baf027277b (patch) | |
tree | d3ba7c51abac34e215e53cbb5fbee59b43263099 /components/script/dom/htmlinputelement.rs | |
parent | 1f31609952a428ba7c877a7eed3f0ea4df2026f8 (diff) | |
download | servo-bb7778774d4bdc6a0f787331e22e36baf027277b.tar.gz servo-bb7778774d4bdc6a0f787331e22e36baf027277b.zip |
clippy:Fix clippy problems in components/scripts/binding (#31893)
* constants have by default a static lifetime
* constants have by default a static lifetime
* unneeded unit expression
* unneeded unit expression
* Box of default value
* casting raw pointers
* casting raw pointers
Diffstat (limited to 'components/script/dom/htmlinputelement.rs')
-rwxr-xr-x | components/script/dom/htmlinputelement.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs index 76d4ea670af..6c10109a5f0 100755 --- a/components/script/dom/htmlinputelement.rs +++ b/components/script/dom/htmlinputelement.rs @@ -83,8 +83,8 @@ use crate::textinput::KeyReaction::{ use crate::textinput::Lines::Single; use crate::textinput::{Direction, SelectionDirection, TextInput, UTF16CodeUnits, UTF8Bytes}; -const DEFAULT_SUBMIT_VALUE: &'static str = "Submit"; -const DEFAULT_RESET_VALUE: &'static str = "Reset"; +const DEFAULT_SUBMIT_VALUE: &str = "Submit"; +const DEFAULT_RESET_VALUE: &str = "Reset"; const PASSWORD_REPLACEMENT_CHAR: char = '●'; #[derive(Clone, Copy, JSTraceable, PartialEq)] @@ -2850,7 +2850,7 @@ impl Activatable for HTMLInputElement { // https://html.spec.whatwg.org/multipage/#radio-button-state-(type=radio):activation-behavior // Check if document owner is fully active if !self.upcast::<Node>().is_connected() { - return (); + return; } let target = self.upcast::<EventTarget>(); target.fire_bubbling_event(atom!("input")); |