From 7d7a9682b3ae056e5339d5a7108a345eebe68bc0 Mon Sep 17 00:00:00 2001 From: Youjie Zheng Date: Sat, 22 Feb 2025 17:44:22 +0800 Subject: [PATCH] [fix] fix the name output --- .github/workflows/build.yml | 11 +---------- modules/axtask/src/task.rs | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef28585ca8..36ab4d539a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,16 +24,7 @@ jobs: run: rustc --version --verbose - uses: ./.github/workflows/actions/setup-musl with: - arch: x86_64 - - uses: ./.github/workflows/actions/setup-musl - with: - arch: riscv64 - - uses: ./.github/workflows/actions/setup-musl - with: - arch: aarch64 - - uses: ./.github/workflows/actions/setup-musl - with: - arch: loongarch64 + arch: ${{ matrix.arch }} - name: Check code format if: ${{ matrix.arch == 'x86_64' }} continue-on-error: ${{ matrix.rust-toolchain == 'nightly' }} diff --git a/modules/axtask/src/task.rs b/modules/axtask/src/task.rs index 3c2fe52282..44468ace39 100644 --- a/modules/axtask/src/task.rs +++ b/modules/axtask/src/task.rs @@ -148,7 +148,7 @@ impl TaskInner { /// Get a combined string of the task ID and name. pub fn id_name(&self) -> alloc::string::String { - alloc::format!("Task({}, {:?})", self.id.as_u64(), self.name) + alloc::format!("Task({}, {:?})", self.id.as_u64(), self.name()) } /// Wait for the task to exit, and return the exit code.