mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix more clippy warnings in components/scripts/dom
(#31914)
* refrence to a reference * refrence to a reference
This commit is contained in:
parent
5aae820f6d
commit
3ddb47e902
5 changed files with 11 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue