diff options
| author | Valentin Popov <valentin@popov.link> | 2026-07-18 04:31:39 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-07-18 04:31:39 +0300 |
| commit | fbe5a8497a9d8b9b7093182f51c506825d6e34cf (patch) | |
| tree | d14a6442ada46707eebf1948eea8d0337fe8edc8 /crates/fparkan-inspection | |
| parent | 2da28d0495e75a0954c194e2e0c4db03c23cb05f (diff) | |
| download | fparkan-fbe5a8497a9d8b9b7093182f51c506825d6e34cf.tar.xz fparkan-fbe5a8497a9d8b9b7093182f51c506825d6e34cf.zip | |
fix(clippy): address Rust 1.97 lints
Diffstat (limited to 'crates/fparkan-inspection')
| -rw-r--r-- | crates/fparkan-inspection/src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/fparkan-inspection/src/lib.rs b/crates/fparkan-inspection/src/lib.rs index f4a085d..983505a 100644 --- a/crates/fparkan-inspection/src/lib.rs +++ b/crates/fparkan-inspection/src/lib.rs @@ -146,6 +146,8 @@ pub fn inspect_archive_file(path: &Path, sample_limit: usize) -> Result<ArchiveI /// # Errors /// /// Returns a [`Diagnostic`] when the archive cannot be read or decoded. +// Diagnostic is deliberately returned by value as the public structured-error contract. +#[allow(clippy::result_large_err)] pub fn inspect_archive_file_diagnostic( path: &Path, sample_limit: usize, @@ -206,6 +208,8 @@ pub fn inspect_archive_file_diagnostic( } /// Inspects archive bytes and returns a typed summary. +// Keeps the internal diagnostic flow aligned with the public structured-error contract. +#[allow(clippy::result_large_err)] fn inspect_archive_bytes( bytes: &[u8], sample_limit: usize, @@ -371,6 +375,8 @@ fn inspect_land_map(document: &NresDocument) -> Result<MapInspection, String> { }) } +// Preserves the shared structured-error type without changing callers to boxed errors. +#[allow(clippy::result_large_err)] fn read_resource_bytes_diagnostic( root: &Path, archive: &str, @@ -438,6 +444,8 @@ fn read_resource_bytes_diagnostic( Ok(Arc::from(bytes.into_owned())) } +// Preserves the shared structured-error type without changing callers to boxed errors. +#[allow(clippy::result_large_err)] fn load_model_document_from_root_diagnostic( root: &Path, archive: &str, |
