Skip to content

Commit f2800ab

Browse files
authored
Merge pull request #7299 from github/nickrolfe/clippy_fixes
Ruby: extractor: fix warnings from Clippy
2 parents 19c34be + 991d659 commit f2800ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ruby/extractor/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn main() -> std::io::Result<()> {
8181
.with_level(true)
8282
.with_env_filter(
8383
tracing_subscriber::EnvFilter::try_from_default_env()
84-
.unwrap_or(tracing_subscriber::EnvFilter::new("ruby_extractor=warn")),
84+
.unwrap_or_else(|_| tracing_subscriber::EnvFilter::new("ruby_extractor=warn")),
8585
)
8686
.init();
8787
tracing::warn!("Support for Ruby is currently in Beta: https://git.io/codeql-language-support");

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)