clippy: Fix more clippy warnings in components/scripts/dom (#31914)

* refrence to a reference

* refrence to a reference
This commit is contained in:
Rosemary Ajayi 2024-03-28 12:26:39 +01:00 committed by GitHub
parent 5aae820f6d
commit 3ddb47e902
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 11 deletions

View file

@ -831,7 +831,7 @@ fn tokenize_open_features(features: DOMString) -> IndexMap<String, String> {
fn parse_open_feature_boolean(tokenized_features: &IndexMap<String, String>, name: &str) -> bool {
if let Some(value) = tokenized_features.get(name) {
// Step 1 & 2
if value == "" || value == "yes" {
if value.is_empty() || value == "yes" {
return true;
}
// Step 3 & 4