Skip to content

Commit 92f003d

Browse files
chore: fix Clippy issues for Rust 1.88 (#26)
1 parent 2ce5906 commit 92f003d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/dom/src/dom_element_filter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fn print_element_as_leaf(r#type: String, config: &Config) -> String {
134134
let tag_color = &config.colors.tag;
135135
format!(
136136
"{} …{}",
137-
tag_color.paint(&format!("<{}", r#type)),
137+
tag_color.paint(&format!("<{type}")),
138138
tag_color.paint(" />")
139139
)
140140
}

packages/dom/src/queries/role.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ fn make_role_selector(role: ByRoleMatcher) -> String {
314314
fn get_name_hint(name: Option<Matcher>) -> String {
315315
match name {
316316
Some(Matcher::String(name)) => format!(" and name \"{name}\""),
317-
Some(Matcher::Regex(name)) => format!(" and name `{}`", name),
318-
Some(Matcher::Number(name)) => format!(" and name `{}`", name),
317+
Some(Matcher::Regex(name)) => format!(" and name `{name}`"),
318+
Some(Matcher::Number(name)) => format!(" and name `{name}`"),
319319
Some(Matcher::Function(_name)) => " and name `Fn`".into(),
320320
None => "".into(),
321321
}

packages/dom/src/types/suggestions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ impl Display for Suggestion {
1919

2020
let text = match &self.query_matcher {
2121
Matcher::String(matcher) => format!("'{matcher}'"),
22-
matcher => format!("{}", matcher),
22+
matcher => format!("{matcher}"),
2323
};
2424

2525
let options = ", TODO";

0 commit comments

Comments
 (0)