Skip to content

Commit 976faf9

Browse files
committed
Ruby: remove redundant closure
1 parent 19c34be commit 976faf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/node-types/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ fn dbscheme_name_to_class_name(dbscheme_name: &str) -> String {
427427
}
428428
dbscheme_name
429429
.split('_')
430-
.map(|word| to_title_case(word))
430+
.map(to_title_case)
431431
.collect::<Vec<String>>()
432432
.join("")
433433
}

0 commit comments

Comments
 (0)