aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-inspection/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/fparkan-inspection/src')
-rw-r--r--crates/fparkan-inspection/src/lib.rs8
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,