Shared: Fix clippy warnings in shared extractor

This commit is contained in:
Harry Maclean
2023-05-05 06:30:12 +00:00
parent 2d5b35067e
commit a577bec22c
3 changed files with 3 additions and 6 deletions

View File

@@ -43,4 +43,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Run clippy
run: cargo clippy -- --no-deps # -D warnings
run: cargo clippy -- --no-deps -D warnings -A clippy::new_without_default -A clippy::too_many_arguments

View File

@@ -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

View File

@@ -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> {