From 4ad9125599d285f922c62c107dbaa746d9426dfd Mon Sep 17 00:00:00 2001 From: Nan Date: Sun, 28 Jul 2024 21:46:18 +0800 Subject: [PATCH] fix aarch64 wasm CI --- .circleci/config.yml | 4 ++-- src/archive.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ee92a84..28f4696 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ orbs: jobs: linux_x86_64: machine: - image: ubuntu-2004:current + image: ubuntu-2204:current resource_class: medium steps: - checkout @@ -32,7 +32,7 @@ jobs: linux_aarch64: machine: - image: ubuntu-2004:current + image: ubuntu-2204:current resource_class: arm.medium steps: - checkout diff --git a/src/archive.rs b/src/archive.rs index d43d3a5..11b9bb1 100644 --- a/src/archive.rs +++ b/src/archive.rs @@ -100,7 +100,7 @@ impl Archive>> { pub fn from_path(path: &str) -> Result>>, OzzError> { match crate::nodejs::read_file(path) { Ok(buf) => return Archive::from_vec(buf), - Err(err) => return Err(OzzError::Custom(err.as_string().unwrap_or("".into()))), + Err(err) => return Err(OzzError::Custom(Box::new(err.as_string().unwrap_or("".into())))), }; } }