mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Shared: Fix clippy warnings in shared extractor
This commit is contained in:
@@ -62,7 +62,7 @@ impl Extractor {
|
||||
main_thread_logger.write(
|
||||
main_thread_logger
|
||||
.new_entry("configuration-error", "Configuration error")
|
||||
.message("{}; using gzip.", &[diagnostics::MessageArg::Code(&e)])
|
||||
.message("{}; using gzip.", &[diagnostics::MessageArg::Code(e)])
|
||||
.severity(diagnostics::Severity::Warning),
|
||||
);
|
||||
trap::Compression::Gzip
|
||||
|
||||
@@ -83,10 +83,7 @@ pub enum Storage {
|
||||
|
||||
impl Storage {
|
||||
pub fn is_column(&self) -> bool {
|
||||
match self {
|
||||
Storage::Column { .. } => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(self, Storage::Column { .. })
|
||||
}
|
||||
}
|
||||
pub fn read_node_types(prefix: &str, node_types_path: &Path) -> std::io::Result<NodeTypeMap> {
|
||||
|
||||
Reference in New Issue
Block a user