Merge pull request #7299 from github/nickrolfe/clippy_fixes

Ruby: extractor: fix warnings from Clippy
This commit is contained in:
Arthur Baars
2021-12-02 18:52:22 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ fn main() -> std::io::Result<()> {
.with_level(true)
.with_env_filter(
tracing_subscriber::EnvFilter::try_from_default_env()
.unwrap_or(tracing_subscriber::EnvFilter::new("ruby_extractor=warn")),
.unwrap_or_else(|_| tracing_subscriber::EnvFilter::new("ruby_extractor=warn")),
)
.init();
tracing::warn!("Support for Ruby is currently in Beta: https://git.io/codeql-language-support");

View File

@@ -427,7 +427,7 @@ fn dbscheme_name_to_class_name(dbscheme_name: &str) -> String {
}
dbscheme_name
.split('_')
.map(|word| to_title_case(word))
.map(to_title_case)
.collect::<Vec<String>>()
.join("")
}