mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix a few problems in components/script/dom
(#31955)
* fixed various clippy warnings * fixed various clippy warnings * fixed various clippy warnings
This commit is contained in:
parent
9401102691
commit
00c4d798c9
5 changed files with 7 additions and 9 deletions
|
@ -874,7 +874,7 @@ impl TestBindingMethods for TestBinding {
|
|||
.get(pref_name.as_ref())
|
||||
.as_str()
|
||||
.map(DOMString::from)
|
||||
.unwrap_or_else(DOMString::new)
|
||||
.unwrap_or_default()
|
||||
}
|
||||
fn PrefControlledAttributeDisabled(&self) -> bool {
|
||||
false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue