We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 19c34be + 991d659 commit f2800abCopy full SHA for f2800ab
2 files changed
ruby/extractor/src/main.rs
@@ -81,7 +81,7 @@ fn main() -> std::io::Result<()> {
81
.with_level(true)
82
.with_env_filter(
83
tracing_subscriber::EnvFilter::try_from_default_env()
84
- .unwrap_or(tracing_subscriber::EnvFilter::new("ruby_extractor=warn")),
+ .unwrap_or_else(|_| tracing_subscriber::EnvFilter::new("ruby_extractor=warn")),
85
)
86
.init();
87
tracing::warn!("Support for Ruby is currently in Beta: https://git.io/codeql-language-support");
ruby/node-types/src/lib.rs
@@ -427,7 +427,7 @@ fn dbscheme_name_to_class_name(dbscheme_name: &str) -> String {
427
}
428
dbscheme_name
429
.split('_')
430
- .map(|word| to_title_case(word))
+ .map(to_title_case)
431
.collect::<Vec<String>>()
432
.join("")
433
0 commit comments