From 138f4e273b90afc6d739e3c975c71a10bf9b225e Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 18:37:59 +0000 Subject: [PATCH] Borrow package bytes for detection --- crates/mesh/src/fbx/package.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/mesh/src/fbx/package.rs b/crates/mesh/src/fbx/package.rs index 6605194fc..4d78c95f1 100644 --- a/crates/mesh/src/fbx/package.rs +++ b/crates/mesh/src/fbx/package.rs @@ -43,7 +43,7 @@ impl<'a> Package<'a> { .read(&self.name, self.limits.max_model_bytes) .map_err(|e| malformed(KIND, format!("package: {e}")))? .ok_or_else(|| malformed(KIND, "package FBX is missing"))?; - if is_package(bytes) { + if is_package(&bytes) { return Err(malformed(KIND, "the package holds another package")); } Ok(bytes)