Skip to content

Commit b7d1879

Browse files
authored
Merge pull request #3698 from Earlopain/fix-cargo-lint
2 parents ac0d423 + 85c7def commit b7d1879

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/ruby-prism/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ fn struct_name(name: &str) -> String {
142142
result
143143
}
144144

145-
fn kind_to_type(kind: &String) -> String {
146-
match kind.as_str() {
145+
fn kind_to_type(kind: &str) -> String {
146+
match kind {
147147
"non-void expression" | "pattern expression" | "Node" => String::new(),
148-
_ => kind.to_string(),
148+
_ => kind.to_owned(),
149149
}
150150
}
151151

0 commit comments

Comments
 (0)